diff options
| author | Russell Yanofsky <[email protected]> | 2020-04-17 11:32:48 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2020-05-13 16:20:13 -0400 |
| commit | b3f7f375efb9a9ca9a7a4f2caf41fe3df2262520 (patch) | |
| tree | d9fe2ebd8d202502a21a32ee614e6a01f6b880c5 /src/test/util/setup_common.cpp | |
| parent | scripted-diff: Remove g_rpc_node references (diff) | |
| download | discoin-b3f7f375efb9a9ca9a7a4f2caf41fe3df2262520.tar.xz discoin-b3f7f375efb9a9ca9a7a4f2caf41fe3df2262520.zip | |
refactor: Remove g_rpc_node global
This commit does not change behavior
Diffstat (limited to 'src/test/util/setup_common.cpp')
| -rw-r--r-- | src/test/util/setup_common.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 8e1c04d3c..86dac55b2 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -123,7 +123,6 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const const CChainParams& chainparams = Params(); // Ideally we'd move all the RPC tests to the functional testing framework // instead of unit tests, but for now we need these here. - g_rpc_node = &m_node; RegisterAllCoreRPCCommands(tableRPC); m_node.scheduler = MakeUnique<CScheduler>(); @@ -176,7 +175,6 @@ TestingSetup::~TestingSetup() threadGroup.join_all(); GetMainSignals().FlushBackgroundCallbacks(); GetMainSignals().UnregisterBackgroundSignalScheduler(); - g_rpc_node = nullptr; m_node.connman.reset(); m_node.banman.reset(); m_node.args = nullptr; |