diff --git a/src/test/baseindex_tests.cpp b/src/test/baseindex_tests.cpp index 68c1d63a7704..4fafb9a9d563 100644 --- a/src/test/baseindex_tests.cpp +++ b/src/test/baseindex_tests.cpp @@ -106,6 +106,9 @@ void LowerLastFlushedBlock(ChainstateManager& chainman, int height) WITH_LOCK(::cs_main, chainstate.ResetBlockFailureFlags(first_disconnected)); BOOST_REQUIRE(chainstate.ActivateBestChain(state)); BOOST_REQUIRE_EQUAL(WITH_LOCK(::cs_main, return chainstate.GetLastFlushedBlock()->nHeight), height); + // Deliver the reorg's notifications now. Left in the queue, they would reach the next index to start, which would + // take the reconnects of blocks it already indexed as a reorg and rewind. + SyncWithValidationInterfaceQueue(); } } // namespace