diff options
author | Carl Dong <contact@carldong.me> | 2022-03-08 16:12:01 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-03-08 16:12:03 -0500 |
commit | 7a68fe4831787a66986a76306180c7876ecba37f (patch) | |
tree | 5810f777ac5714a5b151eb9010b8aa081cb28a4f /src/bitcoin-chainstate.cpp | |
parent | b07fdd7f9eef5f1498af056f3ef11e44795578c0 (diff) |
bitcoin-chainstate: Lock cs_main to UnloadBlockIndex
This was introduced because of a silent merge conflict.
Diffstat (limited to 'src/bitcoin-chainstate.cpp')
-rw-r--r-- | src/bitcoin-chainstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-chainstate.cpp b/src/bitcoin-chainstate.cpp index f93197350d..72b8fefcc7 100644 --- a/src/bitcoin-chainstate.cpp +++ b/src/bitcoin-chainstate.cpp @@ -256,7 +256,7 @@ epilogue: } GetMainSignals().UnregisterBackgroundSignalScheduler(); - UnloadBlockIndex(nullptr, chainman); + WITH_LOCK(::cs_main, UnloadBlockIndex(nullptr, chainman)); init::UnsetGlobals(); } |