Page MenuHomePhabricator

[avalanche] Down-rank rejected contenders
Needs ReviewPublic

Authored by roqqit on Fri, Feb 28, 18:21.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Since D17710, we no longer remove invalidated contenders from the winner set. However, if other contenders finalized, we do not want to select the invalidated winner as the preferred stake winner for mining even if it has the highest rank. This patch down-ranks rejected contenders so that they do not occupy the preferred slot.

Depends on D17700

Test Plan
ninja check
for I in {0..10}; do ./test/functional/test_runner.py abc_p2p_avalanche_contender_voting || break ; done

Diff Detail

Repository
rABC Bitcoin ABC
Branch
sc-downrank-rejected-contenders
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32552
Build 64592: Build Difflint-circular-dependencies · build-debug · build-clang-tidy · build-clang · build-diff · build-without-wallet
Build 64591: arc lint + arc unit