mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-20 05:28:47 -06:00
SideChain: cleanup m_seenBlocks when pruning old blocks
This commit is contained in:
parent
da4686b88f
commit
75d62c0303
@ -1539,6 +1539,7 @@ void SideChain::prune_old_blocks()
|
|||||||
auto it2 = m_blocksById.find(block->m_sidechainId);
|
auto it2 = m_blocksById.find(block->m_sidechainId);
|
||||||
if (it2 != m_blocksById.end()) {
|
if (it2 != m_blocksById.end()) {
|
||||||
m_blocksById.erase(it2);
|
m_blocksById.erase(it2);
|
||||||
|
m_seenBlocks.erase(block->m_sidechainId);
|
||||||
delete block;
|
delete block;
|
||||||
++num_blocks_pruned;
|
++num_blocks_pruned;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user