mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
validation: No mempool clearing in UnloadBlockIndex
The only caller that uses this is ~ChainTestingSetup() where we immediately destroy the mempool afterwards.
This commit is contained in:
parent
572d831927
commit
7d99d725cd
4 changed files with 5 additions and 6 deletions
|
|
@ -182,7 +182,7 @@ ChainTestingSetup::~ChainTestingSetup()
|
|||
m_node.addrman.reset();
|
||||
m_node.netgroupman.reset();
|
||||
m_node.args = nullptr;
|
||||
WITH_LOCK(::cs_main, UnloadBlockIndex(m_node.mempool.get(), *m_node.chainman));
|
||||
WITH_LOCK(::cs_main, UnloadBlockIndex(*m_node.chainman));
|
||||
m_node.mempool.reset();
|
||||
m_node.scheduler.reset();
|
||||
m_node.chainman.reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue