aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-08 22:58:53 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-09 09:10:56 +0100
commitce63ab09db74c5bfe417cbaf0af1064c1778b5ae (patch)
tree3fad0ba72d446a4c6b4212a713979619a4dab996
parentMerge pull request #3775 (diff)
downloadmonero-ce63ab09db74c5bfe417cbaf0af1064c1778b5ae.tar.xz
blockchain: invalidate misc caches when popping blocks
Might be a bit heavy handed, but conservative.
-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 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());