HomePhabricator

[avalanche] Fix a race in abc_p2p_avalanche_remote_proofs.py

Description

[avalanche] Fix a race in abc_p2p_avalanche_remote_proofs.py

Summary: The compact proofs are sent periodically so it's possible for the trigger_avaproofs() function to return on a previously sent message and cause the test to fail. This diff addresses this by using a retry loop and checking the last_update time to make sure we're looking at the correct message.

Test Plan:

./test/functional/test_runner.py abc_p2p_avalanche_remote_proofs

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Apr 1 2024, 16:22
FabienPushed on Apr 1 2024, 18:53
Reviewer
Restricted Project
Differential Revision
D15843: [avalanche] Fix a race in abc_p2p_avalanche_remote_proofs.py
Parents
rABCa6ab58f19c2d: [electrum] fix historical fiat prices via CoinGecko
Branches
Unknown
Tags
Unknown