hardfork: move an assert so it actually works

An unsigned quantity is always >= 0
pull/95/head
moneromooo-monero 9 years ago
parent 1e7fc9c093
commit cec92c4fd3
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save