blockchain: invalidate misc caches when popping blocks

Might be a bit heavy handed, but conservative.
release-v0.2.1.0
moneromooo-monero 6 years ago committed by wowario
parent 26bdc1e457
commit 68b3bb81cf
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -558,6 +558,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();
m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());

Loading…
Cancel
Save