SideChain: cleanup m_seenBlocks when pruning old blocks

pull/71/head
SChernykh 2021-10-29 10:34:53 +02:00
parent da4686b88f
commit 75d62c0303
1 changed files with 1 additions and 0 deletions

View File

@ -1539,6 +1539,7 @@ void SideChain::prune_old_blocks()
auto it2 = m_blocksById.find(block->m_sidechainId);
if (it2 != m_blocksById.end()) {
m_blocksById.erase(it2);
m_seenBlocks.erase(block->m_sidechainId);
delete block;
++num_blocks_pruned;
}