Skip to content

Commit

Permalink
Add explicit tie-breaker in pending balance deposits sort
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Oct 22, 2024
1 parent d9a2585 commit 4a87988
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public BeaconStateElectra upgrade(final BeaconState preState) {
.boxed()
.sorted(
Comparator.comparing(
index -> validators.get(index).getActivationEligibilityEpoch()))
(Integer index) ->
validators.get(index).getActivationEligibilityEpoch())
.thenComparing(index -> index))
.forEach(
index ->
beaconStateMutators.queueEntireBalanceAndResetValidator(state, index));
Expand Down

0 comments on commit 4a87988

Please sign in to comment.