diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-04-17 11:32:13 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-05-13 16:20:13 -0400 |
commit | ccb5059ee89f6e8dc31ba5b82830b384890bb65e (patch) | |
tree | 9b76c0f915f3914c6b1519970d36cf33bc85e68b /src/rpc/mining.cpp | |
parent | 6fca33b2edc09ed62dab2323c780b31585de1750 (diff) |
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-
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 2404b92ab2..28b3582866 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -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()) |