mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 86e7410b22 into merged_master (Bitcoin PR bitcoin/bitcoin#27348)
This commit is contained in:
commit
192dfb449a
1 changed files with 4 additions and 1 deletions
|
|
@ -368,10 +368,13 @@ struct SnapshotTestSetup : TestChain100Setup {
|
|||
|
||||
BOOST_TEST_MESSAGE("Simulating node restart");
|
||||
{
|
||||
LOCK(::cs_main);
|
||||
for (Chainstate* cs : chainman.GetAll()) {
|
||||
LOCK(::cs_main);
|
||||
cs->ForceFlushStateToDisk();
|
||||
}
|
||||
// Process all callbacks referring to the old manager before wiping it.
|
||||
SyncWithValidationInterfaceQueue();
|
||||
LOCK(::cs_main);
|
||||
chainman.ResetChainstates();
|
||||
BOOST_CHECK_EQUAL(chainman.GetAll().size(), 0);
|
||||
const ChainstateManager::Options chainman_opts{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue