mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
hardfork: fix rescan on load
This commit is contained in:
parent
4cea2b13b2
commit
3b47ca2d7d
@ -263,7 +263,7 @@ bool HardFork::rescan_from_block_height(uint64_t height)
|
||||
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;
|
||||
while (current_fork_index + 1 < heights.size() && heights[current_fork_index].version != lastv)
|
||||
++current_fork_index;
|
||||
|
Loading…
Reference in New Issue
Block a user