0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-04 10:07:27 -05:00
bitcoin-bitcoin-core/src/index
furszy ca91c244ef
index: verify blocks data existence only once
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).
2023-07-10 10:50:50 -03:00
..
base.cpp index: verify blocks data existence only once 2023-07-10 10:50:50 -03:00
base.h index: verify blocks data existence only once 2023-07-10 10:50:50 -03:00
blockfilterindex.cpp refactor: Move functions to BlockManager methods 2023-05-10 19:06:53 +02:00
blockfilterindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
coinstatsindex.cpp refactor: Move functions to BlockManager methods 2023-05-10 19:06:53 +02:00
coinstatsindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
disktxpos.h Refactor: Remove unused FlatFilePos::SetNull 2023-03-21 13:54:11 +01:00
txindex.cpp refactor: Move functions to BlockManager methods 2023-05-10 19:06:53 +02:00
txindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00