mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 21:23:27 +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:
parent
24ccdb9b6e
commit
6c8e5c3459
@ -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…
Reference in New Issue
Block a user