aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-05-21 21:36:38 +0200
committerRiccardo Spagni <ric@spagni.net>2018-05-21 21:36:38 +0200
commitf794d3b3df32af4da5bdb47c02975f2df42a985f (patch)
treeabf878ca54ca159c8909fc8121022e7a0f5c6e6b /src/cryptonote_core/blockchain.cpp
parentMerge pull request #3782 (diff)
parentblockchain: invalidate misc caches when popping blocks (diff)
downloadmonero-f794d3b3df32af4da5bdb47c02975f2df42a985f.tar.xz
Merge pull request #3787
ce63ab09 blockchain: invalidate misc caches when popping blocks (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 288922c77..d1ef7d6fe 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -631,6 +631,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());