File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2759,7 +2759,7 @@ static RPCHelpMan loadtxoutset()
2759
2759
LogPrintf (" [snapshot] waiting to see blockheader %s in headers chain before snapshot activation\n " ,
2760
2760
base_blockhash.ToString ());
2761
2761
2762
- ChainstateManager& chainman = * node. chainman ;
2762
+ ChainstateManager& chainman = EnsureChainman ( node) ;
2763
2763
2764
2764
while (max_secs_to_wait_for_headers > 0 ) {
2765
2765
snapshot_start_block = WITH_LOCK (::cs_main,
@@ -2831,8 +2831,7 @@ return RPCHelpMan{
2831
2831
LOCK (cs_main);
2832
2832
UniValue obj (UniValue::VOBJ);
2833
2833
2834
- NodeContext& node = EnsureAnyNodeContext (request.context );
2835
- ChainstateManager& chainman = *node.chainman ;
2834
+ ChainstateManager& chainman = EnsureAnyChainman (request.context );
2836
2835
2837
2836
auto make_chain_data = [&](const Chainstate& cs, bool validated) EXCLUSIVE_LOCKS_REQUIRED (::cs_main) {
2838
2837
AssertLockHeld (::cs_main);
You can’t perform that action at this time.
0 commit comments