Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/test/baseindex_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading