Page MenuHomePhabricator

[avalanche] Set local stake winner in the contender cache
Needs ReviewPublic

Authored by roqqit on Wed, Dec 11, 23:43.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Summary

The locally selected stake winner should be treated as accepted by default and put in the winner set. This way, the cache can flip flop on the voted status without removing the local winner until it is invalidated.

Depends on D17336

Test Plan
ninja check check-functional

Make sure to cover the case where the selected quorum proof happens to be the local winner:

for I in {0..30}; do ./test/functional/test_runner.py abc_p2p_avalanche_contender_voting || break ; done