mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02: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);
|
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 New Issue
Block a user