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
No known key found for this signature in database
GPG key ID: 0CC52153197991A5
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();