Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.cpp
Show First 20 Lines • Show All 222 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); | |||||
m_node.mempool = nullptr; | m_node.mempool = nullptr; | ||||
m_node.scheduler.reset(); | m_node.scheduler.reset(); | ||||
UnloadBlockIndex(); | |||||
m_node.chainman->Reset(); | m_node.chainman->Reset(); | ||||
m_node.chainman = nullptr; | m_node.chainman = nullptr; | ||||
pblocktree.reset(); | pblocktree.reset(); | ||||
} | } | ||||
TestChain100Setup::TestChain100Setup() { | TestChain100Setup::TestChain100Setup() { | ||||
// Generate a 100-block chain: | // Generate a 100-block chain: | ||||
coinbaseKey.MakeNewKey(true); | coinbaseKey.MakeNewKey(true); | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |