mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 06:07:46 +00:00
hardfork: fix accepting v2 blocks too early
This commit is contained in:
parent
10cc6a8593
commit
945ac788d4
1 changed files with 1 additions and 2 deletions
|
@ -104,8 +104,7 @@ uint8_t HardFork::get_effective_version(uint8_t voting_version) const
|
|||
|
||||
bool HardFork::do_check(uint8_t block_version, uint8_t voting_version) const
|
||||
{
|
||||
return block_version >= heights[current_fork_index].version
|
||||
&& block_version <= get_ideal_version()
|
||||
return block_version == heights[current_fork_index].version
|
||||
&& voting_version >= heights[current_fork_index].version;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue