Merge pull request #413

cec92c4 hardfork: move an assert so it actually works (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-10-06 10:43:48 +02:00
commit ad1c3a715b
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}