aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-08 18:21:42 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-08 18:22:03 +0000
commit6c8e5c34598b4a9c7a80630fe2bb854ad5def016 (patch)
tree7b8306d1546453d394bffede9e6f577e1227e06e /src/cryptonote_core
parentMerge pull request #650 (diff)
downloadmonero-6c8e5c34598b4a9c7a80630fe2bb854ad5def016.tar.xz
blockchain: reset hardfork object when resetting blockchain
Not doing so will prevent the new genesis block from being reset if a switch past v1 had occured already.
Diffstat (limited to 'src/cryptonote_core')
-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 f9247ae27..70953f3e7 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -494,6 +494,7 @@ bool Blockchain::reset_and_set_genesis_block(const block& b)
CRITICAL_REGION_LOCAL(m_blockchain_lock);
m_alternative_chains.clear();
m_db->reset();
+ m_hardfork->init();
block_verification_context bvc = boost::value_initialized<block_verification_context>();
add_new_block(b, bvc);