aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:37:31 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:37:31 -0800
commitfdb1cda9650af96baef634efd2f92e79cd7adf0d (patch)
treeca56e9b71ff5bcf1696fec3ba9c49353d01b1c91 /src/cryptonote_core/blockchain.cpp
parentMerge pull request #1501 (diff)
parentcore: invalidate difficulty cache when resetting blockchain (diff)
downloadmonero-fdb1cda9650af96baef634efd2f92e79cd7adf0d.tar.xz
Merge pull request #1502
591d8368 core: invalidate difficulty cache when resetting blockchain (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 39fd0f6f1..11dbb2fe6 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -525,6 +525,7 @@ bool Blockchain::reset_and_set_genesis_block(const block& b)
{
LOG_PRINT_L3("Blockchain::" << __func__);
CRITICAL_REGION_LOCAL(m_blockchain_lock);
+ m_timestamps_and_difficulties_height = 0;
m_alternative_chains.clear();
m_db->reset();
m_hardfork->init();