mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-28 13:02:28 +02:00
9b22995140indexes: set prune lock to genesis before first block (Andrew Toth)0ae3b40c27test: characterize startup with newly added prune and index (Andrew Toth) Pull request description: When setting both a new index and prune size and restarting an unpruned node, the node will prune the block store first and then the index will fail to start syncing. Fix this by setting the prune lock to 0 if the index does not yet have a best block. ACKs for top commit: sedited: Re-ACK9b22995140fjahr: Code review ACK9b22995140Tree-SHA512: fff46c65c6350bdcbb3e0bbc8cde655c619ce48c19730e3caf3175257f7d3cb1abb8cce07f84cf78e20e54f9e3e4963da072cdde6d01a1ceb8a731920220cd13