validation: replace lock with annotation in UnloadBlockIndex()

This commit is contained in:
Jon Atack
2022-02-09 14:01:32 +01:00
parent 6ac637f97f
commit daad0093e3
3 changed files with 3 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ ChainTestingSetup::~ChainTestingSetup()
m_node.banman.reset();
m_node.addrman.reset();
m_node.args = nullptr;
UnloadBlockIndex(m_node.mempool.get(), *m_node.chainman);
WITH_LOCK(::cs_main, UnloadBlockIndex(m_node.mempool.get(), *m_node.chainman));
m_node.mempool.reset();
m_node.scheduler.reset();
m_node.chainman->Reset();