diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-25 20:38:11 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-25 20:38:11 +0000 |
commit | 591d83686e06b578e9d4198880f292030c4a6898 (patch) | |
tree | daa2c49b8073c65e97164f6d21a82c1ff9b9b1f0 /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #1487 (diff) | |
download | monero-591d83686e06b578e9d4198880f292030c4a6898.tar.xz |
core: invalidate difficulty cache when resetting blockchain
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-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 42279184a..f1d08cc49 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(); |