mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #5271
2790d4d3
hardfork: update last_versions on popped block (moneromooo-monero)
This commit is contained in:
commit
cac4c3103a
@ -317,9 +317,12 @@ void HardFork::on_block_popped(uint64_t nblocks)
|
||||
uint64_t height;
|
||||
for (height = old_chain_height - 1; height >= new_chain_height; --height)
|
||||
{
|
||||
version = versions.back();
|
||||
last_versions[version]--;
|
||||
versions.pop_back();
|
||||
version = db.get_hard_fork_version(height);
|
||||
versions.push_front(version);
|
||||
last_versions[version]++;
|
||||
}
|
||||
|
||||
// does not take voting into account
|
||||
|
Loading…
Reference in New Issue
Block a user