Skip to content

Commit

Permalink
Fix overflow (#5184)
Browse files Browse the repository at this point in the history
  • Loading branch information
dynco-nym authored Nov 27, 2024
1 parent e7f8062 commit 96ebe3f
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.2"
version = "1.0.0-rc.3"
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 @@ -219,7 +219,8 @@ async fn run(
let recently_unbonded_mixnodes = queries::ensure_mixnodes_still_bonded(pool, &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 96ebe3f

Please sign in to comment.