HomePhabricator

[avalanche] Fix a race in contenders voting test (again)

Description

[avalanche] Fix a race in contenders voting test (again)

Summary: D17729 attempted to fix this race but erroneously assumes that once one peer gets a poll, all of them will have it. The better solution is to answer polls until we find the contenders we're looking for and then do the checks on that same poll request.

Test Plan:
Run the test a bunch of times:

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
roqqitAuthored on Mon, Mar 3, 16:53
roqqitPushed on Mon, Mar 3, 19:59
Reviewer
Restricted Project
Differential Revision
D17737: [avalanche] Fix a race in contenders voting test (again)
Parents
rABCd25b7436bca1: [avalanche] Process responses to stake contender polls
Branches
Unknown
Tags
Unknown