Page MenuHomePhabricator

[avalanche] Fix staking reward flakiness after node restart in contenders test
Needs ReviewPublic

Authored by roqqit on Fri, Apr 25, 20:13.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Staking rewards may not be ready and trying to force them to be ready via setmocktime after restarting the node causes the prior quorum's proofs to be removed for dangling too long. Instead, we can check if staking rewards is ready and verify the respective poll response. Either PENDING or ACCEPTED are reasonable for our purposes here.

Test Plan
./test/functional/test_runner.py abc_p2p_avalanche_contender_voting

Diff Detail