Skip to content

Commit

Permalink
Fix uint underflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha committed Dec 3, 2024
1 parent f88bb18 commit 635c35c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public ValidatorStatuses recreateValidatorStatusIfNewValidatorsAreFound(
for (int i = preValidatorCount; i < postValidatorCount; i++) {
final ValidatorStatus status =
validatorStatusFactory.createValidatorStatus(
state.getValidators().get(i), currentEpoch.minus(1), currentEpoch);
state.getValidators().get(i), currentEpoch.minusMinZero(1), currentEpoch);
newValidatorStatuses.add(status);
}
return validatorStatusFactory.recreateValidatorStatuses(
Expand Down

0 comments on commit 635c35c

Please sign in to comment.