From 362ded410b8cb1104b7ef31ff8488fec4824a7d5 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Tue, 17 Sep 2019 19:05:26 -0400 Subject: Avoid using g_rpc_node global in wallet code Wallet code should use interfaces::Chain and not directly access to node state. Add a g_rpc_chain replacement global for wallet code to use, and move g_rpc_node definition to a libbitcoin_server source file so there are link errors if wallet code tries to access it. --- src/rpc/util.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/rpc/util.cpp') diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 26252e2b8a..653b287e97 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -13,8 +13,6 @@ #include -NodeContext* g_rpc_node = nullptr; - void RPCTypeCheck(const UniValue& params, const std::list& typesExpected, bool fAllowNull) -- cgit v1.2.3