Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.cpp
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | TestingSetup::~TestingSetup() { | ||||
} | } | ||||
threadGroup.interrupt_all(); | threadGroup.interrupt_all(); | ||||
threadGroup.join_all(); | threadGroup.join_all(); | ||||
GetMainSignals().FlushBackgroundCallbacks(); | GetMainSignals().FlushBackgroundCallbacks(); | ||||
GetMainSignals().UnregisterBackgroundSignalScheduler(); | GetMainSignals().UnregisterBackgroundSignalScheduler(); | ||||
m_node.connman.reset(); | m_node.connman.reset(); | ||||
m_node.banman.reset(); | m_node.banman.reset(); | ||||
m_node.args = nullptr; | m_node.args = nullptr; | ||||
UnloadBlockIndex(m_node.mempool.get()); | UnloadBlockIndex(m_node.mempool.get(), *m_node.chainman); | ||||
m_node.mempool.reset(); | m_node.mempool.reset(); | ||||
m_node.scheduler.reset(); | m_node.scheduler.reset(); | ||||
m_node.chainman->Reset(); | m_node.chainman->Reset(); | ||||
m_node.chainman = nullptr; | m_node.chainman = nullptr; | ||||
pblocktree.reset(); | pblocktree.reset(); | ||||
} | } | ||||
TestChain100Setup::TestChain100Setup() { | TestChain100Setup::TestChain100Setup() { | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |