Post
Topic
Board Bitcoin Technical Support
Merits 2 from 1 user
Re: Power Failure During IBD - Verifying Data Integrity
by
nc50lc
on 13/05/2023, 03:54:10 UTC
⭐ Merited by ETFbitcoin (2)
Is this enough to ensure that no data has been corrupted due to the power failure? Or should I consider taking additional steps to verify the integrity of my node data?
-checklevel can be set up to level 4, see if you need the highest level of verification: https://github.com/bitcoin/bitcoin/blob/9d85c03620bf660cfa7d13080f5c0b191579cbc3/src/validation.cpp#L92-L99

In case there's a corrupted data due to power-failure, it's usually those latest block, block index, chainstate that are being written before the power failure.
So ideally, Bitcoin Core should be able to detect those with the default parameters.