From a74cc1bee2b34f4d7d272c3b34d7560dc2569543 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 14 Dec 2015 08:57:59 +0000 Subject: hardfork: only accept major versions we know about --- src/cryptonote_core/hardfork.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cryptonote_core') diff --git a/src/cryptonote_core/hardfork.cpp b/src/cryptonote_core/hardfork.cpp index 2a2e25635..550047289 100644 --- a/src/cryptonote_core/hardfork.cpp +++ b/src/cryptonote_core/hardfork.cpp @@ -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 { return block_version >= heights[current_fork_index].version + && block_version <= get_ideal_version() && voting_version >= heights[current_fork_index].version; } -- cgit v1.2.3