mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-28 18:25:48 +01:00
fd06157d14test: Add coverage for restarted node without any block sync (Fabian Jahr)3d7ab7ecb7rpc, test: Address feedback from #29668 (Fabian Jahr)312919c9ddtest: Indices can not start based on block data without undo data (Fabian Jahr)a9a3b29dd6index: Check availability of undo data for indices (Fabian Jahr)881ab4fc82support multiple block status checks in CheckBlockDataAvailability (furszy) Pull request description: Currently, we check that `BLOCK_HAVE_DATA` is available for all blocks an index needs to sync during startup. However, for `coinstatsindex` and `blockfilterindex` we also need the undo data for these blocks. If that data is missing in the blocks, we are currently still starting to sync each of these indices and then crash later when we encounter the missing data. This PR adds explicit knowledge of which block data is needed for each index and then checks its availability during startup before initializing the sync process on them. This also addresses a few open comments from #29668 in the last commit. ACKs for top commit: achow101: ACKfd06157d14furszy: utACKfd06157d14sedited: Re-ACKfd06157d14Tree-SHA512: e2ed81c93372b02daa8ddf2819df4164f96d92de05b1d48855410ecac78d5fcd9612d7f0e63a9d57d7e75a0b46e1bea278e43ea87f2693af0220d1f9c600e416