MCPcopy Create free account
hub / github.com/ElementsProject/elements / ~ChainTestingSetup

Method ~ChainTestingSetup

src/test/util/setup_common.cpp:197–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197ChainTestingSetup::~ChainTestingSetup()
198{
199 if (m_node.scheduler) m_node.scheduler->stop();
200 StopScriptCheckWorkerThreads();
201 GetMainSignals().FlushBackgroundCallbacks();
202 GetMainSignals().UnregisterBackgroundSignalScheduler();
203 m_node.connman.reset();
204 m_node.banman.reset();
205 m_node.addrman.reset();
206 m_node.args = nullptr;
207 UnloadBlockIndex(m_node.mempool.get(), *m_node.chainman);
208 m_node.mempool.reset();
209 m_node.scheduler.reset();
210 m_node.chainman->Reset();
211 m_node.chainman.reset();
212}
213
214TestingSetup::TestingSetup(const std::string& chainName, const std::string& fedpegscript, const std::vector<const char*>& extra_args)
215 : ChainTestingSetup(chainName, fedpegscript, extra_args)

Callers

nothing calls this directly

Calls 8

UnloadBlockIndexFunction · 0.85
stopMethod · 0.45
resetMethod · 0.45
getMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected