Sharing the reward ranking logic between the contender cache and peer manager makes it easier to reason about. This also cleans up the if statement in selectStakingRewardWinner that is difficult to read at a glance.
There is no change in behavior.
Differential D17495
[avalanche] Refactor reward ranking logic into its own comparator roqqit on Wed, Jan 8, 17:44. Authored by
Details
Sharing the reward ranking logic between the contender cache and peer manager makes it easier to reason about. This also cleans up the if statement in selectStakingRewardWinner that is difficult to read at a glance. There is no change in behavior. ninja check check-functional
Diff Detail
Event TimelineThis comment was removed by Fabien. Comment Actions Tail of the build log: /work /work/abc-ci-builds/lint-circular-dependencies A new circular dependency in the form of "avalanche/rewardrankcomparator -> avalanche/stakecontendercache -> avalanche/rewardrankcomparator" appears to have been introduced. A new circular dependency in the form of "avalanche/peermanager -> avalanche/rewardrankcomparator -> avalanche/stakecontendercache -> avalanche/peermanager" appears to have been introduced. /work/abc-ci-builds/lint-circular-dependencies Build lint-circular-dependencies failed with exit code 1 |