We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b759cef commit f8abcb3Copy full SHA for f8abcb3
src/test/validation_chainstatemanager_tests.cpp
@@ -367,10 +367,13 @@ struct SnapshotTestSetup : TestChain100Setup {
367
368
BOOST_TEST_MESSAGE("Simulating node restart");
369
{
370
- LOCK(::cs_main);
371
for (Chainstate* cs : chainman.GetAll()) {
+ LOCK(::cs_main);
372
cs->ForceFlushStateToDisk();
373
}
374
+ // Process all callbacks referring to the old manager before wiping it.
375
+ SyncWithValidationInterfaceQueue();
376
377
chainman.ResetChainstates();
378
BOOST_CHECK_EQUAL(chainman.GetAll().size(), 0);
379
const ChainstateManager::Options chainman_opts{
0 commit comments