Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin Core 0.21 - error opening block database
by
nc50lc
on 28/11/2021, 14:26:26 UTC
If the error persist after reaching the height where you've encountered the error, your blockchain may have been corrupted by the sudden shutdown.
If so, you can open your "debug.log" file from bitcoin data directory (default location) to check for errors related to the corrupted block or for possible other issues.
Thank you. I see errors in the debug.

May I show this last section here? I do not know what to do.
The error may be logged before you opened bitcoind with reindex, have you experienced the same error after -reindex?
Yes you can, there's nothing in the debug log that can compromise your private keys, only some privacy-related info.

Quote from: Raini1110
Can I delete files until the last sync?
Can I save the blockchain and restart it in case of a PC crash?
  • (CMIIAW) I think you can delete the last block file and Bitcoin Core will detect it and will issue -reindex then it will sync starting from the last valid block.
    However, if your blockchain is pruned, it will sync from start if you do that.
  • Yes, but not just the blockchain, if you're going to back it up, you may as well backup the whole data directory.