bitcoin-chainstate: Lock cs_main to UnloadBlockIndex

This was introduced because of a silent merge conflict.
pull/24507/head
Carl Dong 3 years ago
parent b07fdd7f9e
commit 7a68fe4831

@ -256,7 +256,7 @@ epilogue:
}
GetMainSignals().UnregisterBackgroundSignalScheduler();
UnloadBlockIndex(nullptr, chainman);
WITH_LOCK(::cs_main, UnloadBlockIndex(nullptr, chainman));
init::UnsetGlobals();
}

Loading…
Cancel
Save