mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 11:00:44 +01:00
ca91c244efindex: verify blocks data existence only once (furszy)fcbdaeef4dinit: don't start indexes sync thread prematurely (furszy)2ec89f1970refactor: simplify pruning violation check (furszy)c82ef91eaemake GetFirstStoredBlock assert that 'start_block' always has data (furszy)430e7027a1refactor: index, decouple 'Init' from 'Start' (furszy)225e213110refactor: init indexes, decouple 'Start()' from the creation step (furszy)2ebc7e68ccdoc: describe 'init load' thread actions (Martin Zumsande)04575106b2scripted-diff: rename 'loadblk' thread name to 'initload' (furszy)ed4462cc78init: start indexes sync earlier (furszy) Pull request description: Simplifies index startup code, eliminating the `g_indexes_ready_to_sync` variable, deduplicating code and moving the prune violation check out of the `BaseIndex` class. Also makes startup more efficient by running the prune violation check once for all indexes instead of once for each index, and by delaying the prune violation check and moving it off of the main thread so the node can start up faster and perform the block data availability verification even when the '-reindex" or the "-reindex-chainstate" flags are enabled (which hasn't being possible so far). ACKs for top commit: ryanofsky: Code review ACKca91c244ef. Just rebase and suggested changes since last review (Start return check, and code simplification) TheCharlatan: re-ACKca91c244efTree-SHA512: e9c98ce89aeb29e8d0f505f17b34aa54fe44efefbf017f4746e3b446ab4de25ade4f707254a0bbe4b99b69731b04a4067ce529eb7aa834ced196784b694cf7ce