diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-12-13 10:24:25 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-12-13 10:24:25 +0200 |
commit | 2f2c6460ae795ae37007ce9835417d0f01611625 (patch) | |
tree | a246c1c679a2e6d17048b42b26f8733677c94c0c | |
parent | Merge pull request #1441 (diff) | |
parent | blockchain: fix reorganizations past a hard fork boundary (diff) | |
download | monero-2f2c6460ae795ae37007ce9835417d0f01611625.tar.xz |
Merge pull request #1442
dd144b14 blockchain: fix reorganizations past a hard fork boundary (moneromooo-monero)
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index efda3f5cf..70b2ccc79 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -759,6 +759,9 @@ bool Blockchain::rollback_blockchain_switching(std::list<block>& original_chain, 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 for (auto& bl : original_chain) { |