scripted-diff: Remove g_rpc_node references

This commit does not change behavior

-BEGIN VERIFY SCRIPT-
git grep -l g_rpc_node | xargs sed -i 's/g_rpc_node->/node./g'
-END VERIFY SCRIPT-
This commit is contained in:
Russell Yanofsky
2020-04-17 11:32:13 -04:00
parent 6fca33b2ed
commit ccb5059ee8
2 changed files with 35 additions and 35 deletions

View File

@@ -639,7 +639,7 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
if(!node.connman)
throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled");
if (g_rpc_node->connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
if (node.connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, PACKAGE_NAME " is not connected!");
if (::ChainstateActive().IsInitialBlockDownload())