mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02:00
Merge pull request #1442
dd144b14
blockchain: fix reorganizations past a hard fork boundary (moneromooo-monero)
This commit is contained in:
commit
2f2c6460ae
@ -759,6 +759,9 @@ bool Blockchain::rollback_blockchain_switching(std::list<block>& original_chain,
|
|||||||
pop_block_from_blockchain();
|
pop_block_from_blockchain();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure the hard fork object updates its current version
|
||||||
|
m_hardfork->reorganize_from_chain_height(rollback_height);
|
||||||
|
|
||||||
//return back original chain
|
//return back original chain
|
||||||
for (auto& bl : original_chain)
|
for (auto& bl : original_chain)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user