diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-19 20:30:46 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-09-05 16:24:56 +0200 |
commit | fafb381af8279b2d2ca768df0bf68d7eb036a2f9 (patch) | |
tree | 35e45709d385b239d7470aca4bec066e68ee72f9 /src/test/util | |
parent | fa0359c5b30730744aa8a7cd9ffab79ded91041f (diff) | |
download | bitcoin-fafb381af8279b2d2ca768df0bf68d7eb036a2f9.tar.xz |
Remove mempool global
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/setup_common.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 8a88e75892..536a131313 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -141,7 +141,7 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const pblocktree.reset(new CBlockTreeDB(1 << 20, true)); - m_node.mempool = &::mempool; + m_node.mempool = MakeUnique<CTxMemPool>(&::feeEstimator); m_node.mempool->setSanityCheck(1.0); m_node.chainman = &::g_chainman; @@ -187,8 +187,8 @@ TestingSetup::~TestingSetup() m_node.connman.reset(); m_node.banman.reset(); m_node.args = nullptr; - UnloadBlockIndex(m_node.mempool); - m_node.mempool = nullptr; + UnloadBlockIndex(m_node.mempool.get()); + m_node.mempool.reset(); m_node.scheduler.reset(); m_node.chainman->Reset(); m_node.chainman = nullptr; |