mirror of
https://github.com/monero-project/monero.git
synced 2026-01-21 20:13:25 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user