diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-05-09 18:27:10 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-05-09 18:27:10 +0200 |
commit | 80b673dcad74444ac70ff7e75ed63a2e970fda8c (patch) | |
tree | 52f501331948cbb45a86f191bf39342bef1c34a5 | |
parent | Merge pull request #3783 (diff) | |
parent | blockchain: invalidate misc caches when popping blocks (diff) | |
download | monero-80b673dcad74444ac70ff7e75ed63a2e970fda8c.tar.xz |
Merge pull request #3788
f24c970f blockchain: invalidate misc caches when popping blocks (moneromooo-monero)
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 25e97f71f..f59f6f754 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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(); m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id()); |