mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-15 17:21:09 +02:00
refactor: remove warnings globals
This commit is contained in:
@@ -716,7 +716,7 @@ static RPCHelpMan getnetworkinfo()
|
||||
}
|
||||
}
|
||||
obj.pushKV("localaddresses", std::move(localAddresses));
|
||||
obj.pushKV("warnings", node::GetWarningsForRpc(IsDeprecatedRPCEnabled("warnings")));
|
||||
obj.pushKV("warnings", node::GetWarningsForRpc(*CHECK_NONFATAL(node.warnings), IsDeprecatedRPCEnabled("warnings")));
|
||||
return obj;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user