Skip to content

Conversation

@halibobo1205
Copy link
Contributor

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

Copy link
Contributor

@CodeNinjaEvan CodeNinjaEvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CodeNinjaEvan CodeNinjaEvan merged commit b1ac699 into tronprotocol:release_v4.8.0 Feb 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants