mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-30 15:01:18 +02:00
bitcoin-chainstate: Lock cs_main to UnloadBlockIndex
This was introduced because of a silent merge conflict.
This commit is contained in:
@@ -256,7 +256,7 @@ epilogue:
|
||||
}
|
||||
GetMainSignals().UnregisterBackgroundSignalScheduler();
|
||||
|
||||
UnloadBlockIndex(nullptr, chainman);
|
||||
WITH_LOCK(::cs_main, UnloadBlockIndex(nullptr, chainman));
|
||||
|
||||
init::UnsetGlobals();
|
||||
}
|
||||
|
Reference in New Issue
Block a user