Skip to content

Fix progress estimate by fixing checkpoint data#75

Merged
miketout merged 1 commit intoVerusCoin:masterfrom
verus-stuff:fix_progress
Jun 26, 2018
Merged

Fix progress estimate by fixing checkpoint data#75
miketout merged 1 commit intoVerusCoin:masterfrom
verus-stuff:fix_progress

Conversation

@leto
Copy link
Copy Markdown

@leto leto commented Jun 25, 2018

The number of transactions since the last checkpoint block was set to
over 100K, but there were no checkpoint blocks other than genesis,
and the timestamp of last checkpoint block was incorrect as well. These
led to the progress indicator always being very close to zero.

This adds checkpoint blocks rougly every 10K blocks and corrects the
other metadata.

Here is an example of correct progress indicators in debug.log:

2018-06-25 07:18:46 UpdateTip: new best=000000000003668ccadd1d535efa2ee133291fb0f9a207467a2c5921ebee64df  height=49180  log2_work=54.642163  tx=113160  date=2018-06-25 07:16:45 progress=0.999938  cache=0.0MiB(1tx)
2018-06-25 07:18:34 LoadBlockIndexDB: hashBestChain=00000000000d7561bb5f6318eab2559347b778eaa12db97ed84ec3239bf907c8 height=49179 date=2018-06-25 07:15:50 progress=0.999915
2018-06-25 07:19:52 UpdateTip: new best=b7420f5c8e1fa1b8b8915060515075c5ccbc69b1b53cf840e982bde0ec756422  height=49182  log2_work=54.642226  tx=113163  date=2018-06-25 07:18:30 progress=0.999958  cache=0.0MiB(5tx)

This was tested on OS X.

The number of transactions since the last checkpoint block was set to
over 100K, but there were no checkpoint blocks other than genesis,
and the timestamp of last checkpoint block was incorrect as well. These
led to the progress indicator always being very close to zero.

This adds checkpoint blocks rougly every 10K blocks and corrects the
other metadata.
@miketout miketout merged commit c0fc310 into VerusCoin:master Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants