mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
f68cba29b3blockman: Replace m_reindexing with m_blockfiles_indexed (Ryan Ofsky)1b1c6dcca0test: Add functional test for continuing a reindex (TheCharlatan)201c1a9282indexes: Don't wipe indexes again when already reindexing (TheCharlatan)804f09dfa1kernel: Add less confusing reindex options (Ryan Ofsky)e172553223validation: Remove needs_init from LoadBlockIndex (TheCharlatan)533eab7d67bugfix: Streamline setting reindex option (TheCharlatan) Pull request description: When restarting `bitcoind` during an ongoing reindex without setting the `-reindex` flag again, the block and coins db is left intact, but any data from the optional indexes is discarded. While not a bug per se, wiping the data again is wasteful, both in terms of having to write it again, as well as potentially leading to longer startup times. So keep the index data instead when continuing a prior reindex. Also includes a bugfix and smaller code cleanups around the reindexing code. The bug was introduced inb47bd95920: "kernel: De-globalize fReindex". ACKs for top commit: stickies-v: ACKf68cba29b3fjahr: Code review ACKf68cba29b3furszy: Code review ACKf68cba29b3ryanofsky: Code review ACKf68cba29b3. Only changes since last review were cherry-picking suggested commits that rename variables, improving comments, and making some tweaks to test code. Tree-SHA512: b252228cc76e9f1eaac56d5bd9e4eac23408e0fc04aeffd97a85417f046229364673ee1ca7410b9b6e7b692b03f13ece17c42a10176da0d7e975a8915deb98ca
44 KiB
Executable File
44 KiB
Executable File