HomePhabricator

[avalanche] Streamline API for setting manual stake winners to contender cache

Description

[avalanche] Streamline API for setting manual stake winners to contender cache

Summary:
This more closely matches Processor::setStakingRewardWinners which will help eliminate unnecessary logic that loops over new winners to add them to the cache. When the cache is ready to be populated, this line can be dropped into setStakingRewardWinners() with minimal other changes:

stakeContenderCache.setWinners(pprev, payouts);

Test Plan:

ninja check-avalanche-stakecontendercache_tests

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16933

Details

Provenance
roqqitAuthored on Oct 8 2024, 21:07
teamcityPushed on Oct 21 2024, 15:54
Parents
rSTAGING84d4784287c1: [Automated] Update chainparams
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/50342, tag: phabricator/base/50252

Event Timeline