HomePhabricator

[avalanche] Allow for yes-voting several winners

Description

[avalanche] Allow for yes-voting several winners

Summary:
This updates the getstakingreward and setstakingreward RPC so that an array of winners can be manually set. This makes it possible to allow 2 winners manually if there is a doubt about which is the correct one (e.g. if 2 nodes disagree).

Also use this to allow for more winners if we are missing connection to the selected proof, and leverage the remote proofs to determine if a proof looks abnormal.
Mining remains unchanged, only the node vote is affected.

Depends on D15685.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
FabienAuthored on Mar 12 2024, 16:13
teamcityPushed on Mar 20 2024, 09:16
Parents
rSTAGING7bfcd9e57cff: [avalanche] Prepare the data structure to hold several staking reward winners
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/46320

Event Timeline