diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-14 08:57:59 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-14 09:17:07 +0000 |
| commit | a74cc1bee2b34f4d7d272c3b34d7560dc2569543 (patch) | |
| tree | 0e17ba814c27022cd91f6fc684597f4d4daded13 | |
| parent | 3a4db6346b2b1b4c3e3733d833f338d104f7da95 (diff) | |
| download | monzero-core-a74cc1bee2b34f4d7d272c3b34d7560dc2569543.tar.gz monzero-core-a74cc1bee2b34f4d7d272c3b34d7560dc2569543.tar.xz monzero-core-a74cc1bee2b34f4d7d272c3b34d7560dc2569543.zip | |
hardfork: only accept major versions we know about
| -rw-r--r-- | src/cryptonote_core/hardfork.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
