mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-29 18:05:58 +02:00
3aef38f44btest: exercise index reorg assertion failure (furszy)acf50233cdindex: fix wrong assert of current_tip == m_best_block_index (Hao Xu) Pull request description: In BaseIndex::Sync(), pindex in `Rewind(pindex, pindex_next->pprev)` isn't always equal to m_best_block_index since m_best_block_index is updated every SYNC_LOCATOR_WRITE_INTERVAL seconds, during which multiple pindex update could happen. Thus the assert here is wrong. ACKs for top commit: achow101: ACK3aef38f44bfurszy: ACK3aef38fmzumsande: Code Review ACK3aef38f44bTree-SHA512: 3ef9cc6dfdec10a9f95d7414c6a11aa216e4cf5974440d80ab19fc919abd2a3bd4c875718c9dc94523c33826f8582ec5a016374deb8fb2d35cd2fb7799b5c82e