Skip to content

Commit 05e5af5

Browse files
committed
Merge bitcoin/bitcoin#24507: fix CI: bitcoin-chainstate: Lock cs_main to UnloadBlockIndex
7a68fe4 bitcoin-chainstate: Lock cs_main to UnloadBlockIndex (Carl Dong) Pull request description: This was introduced because of a silent merge conflict. ACKs for top commit: promag: ACK 7a68fe4 jonatack: ACK 7a68fe4 Tree-SHA512: 4c135efd68604452485a129e731675ff5917c157a70c77dd702211d9902c21b3b29380a881723f43ecba4762bc864b036881bb502b3b792e581565dcaa7a7ed4
2 parents 0cc5a19 + 7a68fe4 commit 05e5af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoin-chainstate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ int main(int argc, char* argv[])
256256
}
257257
GetMainSignals().UnregisterBackgroundSignalScheduler();
258258

259-
UnloadBlockIndex(nullptr, chainman);
259+
WITH_LOCK(::cs_main, UnloadBlockIndex(nullptr, chainman));
260260

261261
init::UnsetGlobals();
262262
}

0 commit comments

Comments
 (0)