Fix overflow (#5204)

This commit is contained in:
dynco-nym
2024-12-03 10:20:28 +01:00
committed by GitHub
parent 6ee8ccbeaa
commit fc79f739d4
3 changed files with 4 additions and 3 deletions
@@ -3,7 +3,7 @@
[package]
name = "nym-node-status-api"
version = "1.0.0-rc.4"
version = "1.0.0-rc.5"
authors.workspace = true
repository.workspace = true
homepage.workspace = true
@@ -249,7 +249,8 @@ impl Monitor {
queries::ensure_mixnodes_still_bonded(&pool, &legacy_mixnodes).await?;
let count_bonded_mixnodes_reserve = 0; // TODO: NymAPI doesn't report the reserve set size
let count_bonded_mixnodes_inactive = count_bonded_mixnodes - count_bonded_mixnodes_active;
let count_bonded_mixnodes_inactive =
count_bonded_mixnodes.saturating_sub(count_bonded_mixnodes_active);
let (all_historical_gateways, all_historical_mixnodes) = calculate_stats(&pool).await?;