|
|
@ -123,7 +123,6 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
|
|
|
|
const CChainParams& chainparams = Params();
|
|
|
|
const CChainParams& chainparams = Params();
|
|
|
|
// Ideally we'd move all the RPC tests to the functional testing framework
|
|
|
|
// Ideally we'd move all the RPC tests to the functional testing framework
|
|
|
|
// instead of unit tests, but for now we need these here.
|
|
|
|
// instead of unit tests, but for now we need these here.
|
|
|
|
g_rpc_node = &m_node;
|
|
|
|
|
|
|
|
RegisterAllCoreRPCCommands(tableRPC);
|
|
|
|
RegisterAllCoreRPCCommands(tableRPC);
|
|
|
|
|
|
|
|
|
|
|
|
m_node.scheduler = MakeUnique<CScheduler>();
|
|
|
|
m_node.scheduler = MakeUnique<CScheduler>();
|
|
|
@ -176,7 +175,6 @@ TestingSetup::~TestingSetup()
|
|
|
|
threadGroup.join_all();
|
|
|
|
threadGroup.join_all();
|
|
|
|
GetMainSignals().FlushBackgroundCallbacks();
|
|
|
|
GetMainSignals().FlushBackgroundCallbacks();
|
|
|
|
GetMainSignals().UnregisterBackgroundSignalScheduler();
|
|
|
|
GetMainSignals().UnregisterBackgroundSignalScheduler();
|
|
|
|
g_rpc_node = nullptr;
|
|
|
|
|
|
|
|
m_node.connman.reset();
|
|
|
|
m_node.connman.reset();
|
|
|
|
m_node.banman.reset();
|
|
|
|
m_node.banman.reset();
|
|
|
|
m_node.args = nullptr;
|
|
|
|
m_node.args = nullptr;
|
|
|
|