Skip to content

Commit

Permalink
Add explicit tie-breaker in pending balance deposits sort (#8772)
Browse files Browse the repository at this point in the history
Co-authored-by: Enrico Del Fante <enrico.delfante@consensys.net>
  • Loading branch information
jtraglia and tbenr authored Oct 24, 2024
1 parent f4e8570 commit a5b7a22
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 a5b7a22

Please sign in to comment.