Skip to content

Commit

Permalink
ramdom list validators
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Jun 6, 2024
1 parent 1f23b15 commit c63a35b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,7 @@ const ValidatorTable = memo(({ data = [] }) => {
if (!data) return [];

if (isFirstSort) {
return [...data]
.map(e => {
return { ...e, votingPowerMixUpTime: e.voting_power * e.uptime };
})
.sort((a, b) => 0.5 - Math.random());
return [...data].sort((a, b) => 0.5 - Math.random());
}

if (canSort) {
Expand Down

0 comments on commit c63a35b

Please sign in to comment.