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.
getblocktemplate-height
moneromooo-monero 8 years ago
parent 24ccdb9b6e
commit 6c8e5c3459
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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);

Loading…
Cancel
Save