-
Notifications
You must be signed in to change notification settings - Fork 36.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verification progress dropped 11% on bitcoin core update from 22 to 28 #31473
Comments
Sync progress as reported by Bitcoin Core is really only accurate up to the height of the chain at the time of release. The number of transactions in the blockchain at that time are hard coded: bitcoin/src/kernel/chainparams.cpp Lines 195 to 200 in d6b225f
These data are updated with every new release: https://github.com/bitcoin/bitcoin/blob/28.x/doc/release-process.md#before-branch-off After the hard-coded height is reached the software can only estimate how many more transactions there are to verify and so the sync progress is only a guess: Lines 5563 to 5586 in d6b225f
Upgrading from v22 to v28 means around three years of data has been included that you did not have before! So the updated node is giving you a much more accurate progress estimation. |
Yes, this is expected. Closing for now. Leave a comment if there are any follow-up questions. |
Is there an existing issue for this?
Current behaviour
Possibly related to #31127 with wrong estimation.
I had a full node synced for a while then got shut down for a year or so. I started syncing again last week and got to 90% verification progress using Bitcoin Core v22 on Windows 11.
I shut it down normally and started v28 and found out that sync progress dropped to 79% (although height looks correct). The estimation of 79% seems off by a margin (~810204 / ~874306).
Prior to starting 28.0, I changed cache size to 3072 from 2000mb. Also enabled listen=1 and natpmp=1 and set rpcthreads to 4
Below is the output from bitcoind
v22.0
v28.0
output from getblockchaininfo v28
v22
Expected behaviour
I'd expect the progress to be the same and reasonable maybe?
Steps to reproduce
upgrade from v22 to v28 using same datadir and run right away
Relevant log output
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v28.0
Operating system and version
Windows 11 21H2 22000.2538
Machine specifications
Processor Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz, 2808 Mhz, 4 Core(s), 8 Logical Processor(s)
Total Physical Memory 15.9 GB
Total Virtual Memory 22.6 GB
Diskdrive D (NTFS):
HDD Size 919.41 GB
Free Space 119.99 GB
The text was updated successfully, but these errors were encountered: