Closed psolstice closed 8 months ago
The update introduces a flexible mechanism for checking the Proof of Work (PoW) of blockchain blocks during client startup. It adds an option to either perform a comprehensive PoW check for all blocks or limit the verification to the most recent ones, depending on a specified flag. This enhancement aims to improve startup efficiency without compromising the integrity of the blockchain.
Files | Change Summary |
---|---|
src/txdb.cpp , src/txdb.h |
Updated to support conditional PoW checks for blocks on startup, based on the -fullblockindexcheck flag. Introduce constants for default behavior and the number of recent blocks to check. |
🐰✨
In the realm of code, where blocks align,
A rabbit hopped, making blockchain refine.
"Let's check the work, but wisely so,
For not all blocks need our thorough glow.
With a flag to guide, we hop with ease,
Ensuring integrity, in the digital breeze."
🌟🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR intention
Speed up loading block index from disk.
Code changes brief
Code eliminates the check of PoW for all the block headers except last 10000.
Summary by CodeRabbit