HomePhabricator

Fix race to check chaintips in p2p_headers_sync_with_minchainwork

Description

Fix race to check chaintips in p2p_headers_sync_with_minchainwork

Summary: node3 is not guaranteed to have finished syncing headers by the time getchaintips is first called.

Test Plan:

./test/functional/test_runner.py p2p_headers_sync_with_minchainwork.py

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
roqqitAuthored on Tue, Dec 17, 22:33
roqqitPushed on Wed, Dec 18, 22:37
Reviewer
Restricted Owners Package
Differential Revision
D17368: Fix race to check chaintips in p2p_headers_sync_with_minchainwork
Parents
rABC0657e8a86eeb: [avalanche] Make sure each proof is added to contender cache before mining theā€¦
Branches
Unknown
Tags
Unknown