diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-10-06 10:43:48 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-10-06 10:44:30 +0200 |
commit | ad1c3a715b0e94ae449c619195288af39e8fd81b (patch) | |
tree | e6edc6d5dcf50e7a09ad60f16a39a65fb9fce4c0 | |
parent | Merge pull request #411 (diff) | |
parent | hardfork: move an assert so it actually works (diff) | |
download | monero-ad1c3a715b0e94ae449c619195288af39e8fd81b.tar.xz |
Merge pull request #413
cec92c4 hardfork: move an assert so it actually works (moneromooo-monero)
-rw-r--r-- | src/cryptonote_core/hardfork.cpp | 2 |
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(); } |