feat(witness): sort witness from address hashcode to address by halibobo1205 · Pull Request #6173 · tronprotocol/java-tron

What does this PR do?

Sort witness from address hashcode to address.

Why are these changes required?
Avoid hashCode collisions:
During the maintenance period, votes for the witnesses are aggregated. After performing this vote aggregation, the list of the 27 Super Representatives and 127 Standby Witnesses is extracted, ordered according to the number of votes, and then by the ByteString.hashCode().

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details