mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-04 10:07:27 -05:00
ca91c244ef
At present, during init, we traverse the chain (once per index) to confirm that all necessary blocks to sync each index up to the current tip are present. To make the process more efficient, we can fetch the oldest block from the indexers and perform the chain data existence check from that point only once. This also moves the pruning violation check to the end of the 'loadinit' thread, which is where the reindex, block loading and chain activation processes happen. Making the node's startup process faster, allowing us to remove the global g_indexes_ready_to_sync flag, and enabling the execution of the pruning violation verification even when the reindex or reindex-chainstate flags are enabled (which has being skipped so far). |
||
---|---|---|
.. | ||
base.cpp | ||
base.h | ||
blockfilterindex.cpp | ||
blockfilterindex.h | ||
coinstatsindex.cpp | ||
coinstatsindex.h | ||
disktxpos.h | ||
txindex.cpp | ||
txindex.h |