mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
hardfork: fix rescan on load
This commit is contained in:
parent
4cea2b13b2
commit
3b47ca2d7d
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ bool HardFork::rescan_from_block_height(uint64_t height)
|
||||||
versions.push_back(v);
|
versions.push_back(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t lastv = db.get_hard_fork_version(height);
|
uint8_t lastv = db.get_hard_fork_version(db.height() - 1);
|
||||||
current_fork_index = 0;
|
current_fork_index = 0;
|
||||||
while (current_fork_index + 1 < heights.size() && heights[current_fork_index].version != lastv)
|
while (current_fork_index + 1 < heights.size() && heights[current_fork_index].version != lastv)
|
||||||
++current_fork_index;
|
++current_fork_index;
|
||||||
|
|
Loading…
Reference in a new issue