aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/hardfork.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptonote_core/hardfork.cpp')
-rw-r--r--src/cryptonote_core/hardfork.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/hardfork.cpp b/src/cryptonote_core/hardfork.cpp
index 4b40a4cf3..3a8584b7f 100644
--- a/src/cryptonote_core/hardfork.cpp
+++ b/src/cryptonote_core/hardfork.cpp
@@ -103,8 +103,8 @@ bool HardFork::add(uint8_t block_version, uint64_t height)
while (versions.size() >= window_size) {
const uint8_t old_version = versions.front();
+ assert(last_versions[old_version] >= 1);
last_versions[old_version]--;
- assert(last_versions[old_version] >= 0);
versions.pop_front();
}