mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Remove mempool global
This commit is contained in:
parent
fa0359c5b3
commit
fafb381af8
8 changed files with 11 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue