bitcoin-chainstate: Lock cs_main to UnloadBlockIndex

This was introduced because of a silent merge conflict.
This commit is contained in:
Carl Dong committed 2022-03-08 16:12:03 -05:00
1 parent b07fdd7f9e
commit 7a68fe4831
1 file changed
+1 -1
+1 -1
View File
@@ -256,7 +256,7 @@ epilogue:
}
GetMainSignals().UnregisterBackgroundSignalScheduler();
UnloadBlockIndex(nullptr, chainman);
WITH_LOCK(::cs_main, UnloadBlockIndex(nullptr, chainman));
init::UnsetGlobals();
}