mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-03 17:29:24 +00:00
SideChain: cleanup m_seenBlocks when pruning old blocks
This commit is contained in:
parent
da4686b88f
commit
75d62c0303
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue