| 195 | } |
| 196 | |
| 197 | ChainTestingSetup::~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 | |
| 214 | TestingSetup::TestingSetup(const std::string& chainName, const std::string& fedpegscript, const std::vector<const char*>& extra_args) |
| 215 | : ChainTestingSetup(chainName, fedpegscript, extra_args) |
nothing calls this directly
no test coverage detected