mirror of
https://github.com/monero-project/monero.git
synced 2025-05-15 08:02:15 -04:00
hardfork: only accept major versions we know about
This commit is contained in:
parent
3a4db6346b
commit
a74cc1bee2
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,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
|
bool HardFork::do_check(uint8_t block_version, uint8_t voting_version) const
|
||||||
{
|
{
|
||||||
return block_version >= heights[current_fork_index].version
|
return block_version >= heights[current_fork_index].version
|
||||||
|
&& block_version <= get_ideal_version()
|
||||||
&& voting_version >= heights[current_fork_index].version;
|
&& voting_version >= heights[current_fork_index].version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue