mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
refactor: replace util::Ref by std::any (C++17)
This commit is contained in:
@@ -787,7 +787,7 @@ static bool InitSanityCheck()
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool AppInitServers(const util::Ref& context, NodeContext& node)
|
||||
static bool AppInitServers(const std::any& context, NodeContext& node)
|
||||
{
|
||||
const ArgsManager& args = *Assert(node.args);
|
||||
RPCServer::OnStarted(&OnRPCStarted);
|
||||
@@ -1276,7 +1276,7 @@ bool AppInitInterfaces(NodeContext& node)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
bool AppInitMain(const std::any& context, NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
{
|
||||
const ArgsManager& args = *Assert(node.args);
|
||||
const CChainParams& chainparams = Params();
|
||||
|
||||
Reference in New Issue
Block a user