diff --git a/core/src/ballot_box.rs b/core/src/ballot_box.rs index 9419b70c..a5b6fe82 100644 --- a/core/src/ballot_box.rs +++ b/core/src/ballot_box.rs @@ -485,7 +485,7 @@ impl BallotBox { self.unique_ballots = PodU64::from( unique_ballots .checked_sub(1) - .ok_or(TipRouterError::ArithmeticOverflow)?, + .ok_or(TipRouterError::ArithmeticUnderflowError)?, ); } }