Skip to content

Commit

Permalink
Fix overflow (#5204)
Browse files Browse the repository at this point in the history
  • Loading branch information
dynco-nym authored Dec 3, 2024
1 parent 6ee8ccb commit fc79f73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nym-node-status-api/nym-node-status-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion nym-node-status-api/nym-node-status-api/src/monitor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;

Expand Down

0 comments on commit fc79f73

Please sign in to comment.