aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-04 12:37:59 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-04 12:55:49 +0100
commitcec92c4fd39148c20ae9d8f7308cb51b886e5901 (patch)
treefc036292666f20df6f1cc61dcc54168981df76c5 /src
parentMerge pull request #410 (diff)
downloadmonero-cec92c4fd39148c20ae9d8f7308cb51b886e5901.tar.xz
hardfork: move an assert so it actually works
An unsigned quantity is always >= 0
Diffstat (limited to 'src')
-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();
}