Files
bitcoin/src/index
Martin Zumsande 3679f1ecf5 index: Don't commit ahead of the flushed chainstate
Otherwise, if the node has an unclean restart,
indexes with state (coinstatsindex) couldn't reorg to the
last flushed tip and would be corrupted.

Also updates documentation of Commit() -
the locator functionality isn't used, so the previous text was wrong:
We must have the best block in our block index after a restart.

Co-authored-by: Fabian Jahr <fjahr@protonmail.com>
2026-07-09 16:21:28 +02:00
..