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()
27592759 LogPrintf (" [snapshot] waiting to see blockheader %s in headers chain before snapshot activation\n " ,
27602760 base_blockhash.ToString ());
27612761
2762- ChainstateManager& chainman = * node. chainman ;
2762+ ChainstateManager& chainman = EnsureChainman ( node) ;
27632763
27642764 while (max_secs_to_wait_for_headers > 0 ) {
27652765 snapshot_start_block = WITH_LOCK (::cs_main,
@@ -2831,8 +2831,7 @@ return RPCHelpMan{
28312831 LOCK (cs_main);
28322832 UniValue obj (UniValue::VOBJ);
28332833
2834- NodeContext& node = EnsureAnyNodeContext (request.context );
2835- ChainstateManager& chainman = *node.chainman ;
2834+ ChainstateManager& chainman = EnsureAnyChainman (request.context );
28362835
28372836 auto make_chain_data = [&](const Chainstate& cs, bool validated) EXCLUSIVE_LOCKS_REQUIRED (::cs_main) {
28382837 AssertLockHeld (::cs_main);
You can’t perform that action at this time.
0 commit comments