Is your feature request related to a problem? Please describe.
I'm always frustrated when almost half of a blockchain was downloaded and verified, and then happens a failure in a single block, which prevents the sync from proceeding forward…
2020-05-31T07:54:31Z Bitcoin Core version v0.19.0.1-gentoo (release build)
...
2020-05-31T07:54:40Z Loaded best chain: hashBestChain=000000000000000000be77bcc38cab3ec75b1918c4ce20904c9e48bacfd842c6 height=468087 date=2017-05-25T15:41:40Z progress=0.418393
2020-05-31T07:54:40Z init message: Rewinding blocks...
2020-05-31T07:54:41Z init message: Verifying blocks...
2020-05-31T07:54:41Z Verifying last 6 blocks at level 3
2020-05-31T07:54:41Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2020-05-31T07:54:42Z No coin database inconsistencies in last 6 blocks (14028 transactions)
...
2020-05-31T07:54:42Z init message: Loading P2P addresses...
2020-05-31T07:54:42Z *** Corrupt block found indicating potential hardware failure; shutting down
2020-05-31T07:54:42Z Error: A fatal internal error occurred, see debug.log for details
2020-05-31T07:54:42Z ERROR: ConnectTip: ConnectBlock 0000000000000000006338960b86655b587e2bdf12655041375707807ac84c7d failed, bad-txnmrklroot, hashMerkleRoot mismatch (code 16)
2020-05-31T07:54:42Z Failed to connect best block (bad-txnmrklroot, hashMerkleRoot mismatch (code 16))
Describe the solution you'd like
I'd like to have a setting in bitcoind that would allow for the offending block removal and re-downloading.
Describe alternatives you've considered
Manually fixing something in local LevelDB files.
Additional context
- Seems to be a common issue among bitcoin newbies
- #11576
- Hardware could fail
- I use cheap microSD card for storing the blockchain