diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-08 16:37:31 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-08 16:37:31 -0800 |
commit | fdb1cda9650af96baef634efd2f92e79cd7adf0d (patch) | |
tree | ca56e9b71ff5bcf1696fec3ba9c49353d01b1c91 /src | |
parent | Merge pull request #1501 (diff) | |
parent | core: invalidate difficulty cache when resetting blockchain (diff) | |
download | monero-fdb1cda9650af96baef634efd2f92e79cd7adf0d.tar.xz |
Merge pull request #1502
591d8368 core: invalidate difficulty cache when resetting blockchain (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 1 |
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(); |