We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cced0f4 commit d0abf0bCopy full SHA for d0abf0b
src/rpc/blockchain.cpp
@@ -79,6 +79,7 @@ ChainstateManager& EnsureChainman(const std::any& context)
79
if (!node.chainman) {
80
throw JSONRPCError(RPC_INTERNAL_ERROR, "Node chainman not found");
81
}
82
+ WITH_LOCK(::cs_main, CHECK_NONFATAL(std::addressof(g_chainman) == std::addressof(*node.chainman)));
83
return *node.chainman;
84
85
0 commit comments