validation: Pass in chainman to UnloadBlockIndex

This commit is contained in:
Carl Dong
2020-08-25 15:23:57 -04:00
parent 4668ded6d6
commit 74f73c783d
5 changed files with 10 additions and 7 deletions

View File

@@ -187,7 +187,7 @@ TestingSetup::~TestingSetup()
m_node.connman.reset();
m_node.banman.reset();
m_node.args = nullptr;
UnloadBlockIndex(m_node.mempool.get());
UnloadBlockIndex(m_node.mempool.get(), *m_node.chainman);
m_node.mempool.reset();
m_node.scheduler.reset();
m_node.chainman->Reset();