mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 10:19:24 -05:00
blockchain: invalidate misc caches when popping blocks
Might be a bit heavy handed, but conservative.
This commit is contained in:
parent
bab5bbfc19
commit
f24c970f96
@ -584,6 +584,12 @@ block Blockchain::pop_block_from_blockchain()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_blocks_longhash_table.clear();
|
||||||
|
m_scan_table.clear();
|
||||||
|
m_blocks_txs_check.clear();
|
||||||
|
m_check_txin_table.clear();
|
||||||
|
|
||||||
update_next_cumulative_size_limit();
|
update_next_cumulative_size_limit();
|
||||||
m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());
|
m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user