diff options
| author | Russell Yanofsky <[email protected]> | 2019-09-17 19:05:26 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2019-10-28 10:30:51 -0400 |
| commit | 362ded410b8cb1104b7ef31ff8488fec4824a7d5 (patch) | |
| tree | 0ffc9c199a3b7adcb9957b19824bff8c0fe33bb0 /src/rpc/util.h | |
| parent | scripted-diff: Remove g_connman, g_banman globals (diff) | |
| download | discoin-362ded410b8cb1104b7ef31ff8488fec4824a7d5.tar.xz discoin-362ded410b8cb1104b7ef31ff8488fec4824a7d5.zip | |
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.
Diffstat (limited to 'src/rpc/util.h')
| -rw-r--r-- | src/rpc/util.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index 872ef5eca..221638aa9 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -25,12 +25,6 @@ class FillableSigningProvider; class CPubKey; class CScript; -struct NodeContext; - -//! Pointers to interfaces that need to be accessible from RPC methods. Due to -//! limitations of the RPC framework, there's currently no direct way to pass in -//! state to RPC method implementations. -extern NodeContext* g_rpc_node; /** Wrapper for UniValue::VType, which includes typeAny: * Used to denote don't care type. */ |