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
roqqitPushed on Oct 21 2024, 15:51
Reviewer
Restricted Owners Package
Differential Revision
D16933: [avalanche] Streamline API for setting manual stake winners to contender cache
Parents
rABC84d4784287c1: [Automated] Update chainparams
Branches
Unknown
Tags
Unknown