Skip to content

Commit

Permalink
Replace string comparison with bytes' in get_winning_crosslink_and_at…
Browse files Browse the repository at this point in the history
…testing_indices
  • Loading branch information
mkalinin committed Sep 23, 2019
1 parent 1bc6ce9 commit cf24e15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ default Pair<Crosslink, List<ValidatorIndex>> get_winning_crosslink_and_attestin
Gwei b2 = get_attesting_balance(state,
attestations.stream().filter(a -> a.getData().getCrosslink().equals(c2)).collect(toList()));
if (b1.equals(b2)) {
return c1.getDataRoot().toString().compareTo(c2.getDataRoot().toString());
return c1.getDataRoot().compareTo(c2.getDataRoot());
} else {
return b1.compareTo(b2);
}
Expand Down

0 comments on commit cf24e15

Please sign in to comment.