Page MenuHomePhabricator

Fix race to check chaintips in p2p_headers_sync_with_minchainwork
ClosedPublic

Authored by roqqit on Tue, Dec 17, 22:35.

Details

Reviewers
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC607be5e6570a: 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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
minchainwork-race
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31713
Build 62922: Build Diffbuild-diff · build-clang · build-clang-tidy · build-debug · build-without-wallet
Build 62921: arc lint + arc unit

Event Timeline

Owners added a reviewer: Restricted Owners Package.Tue, Dec 17, 22:35
roqqit requested review of this revision.Tue, Dec 17, 22:35
Fabien requested changes to this revision.Wed, Dec 18, 08:35
Fabien added a subscriber: Fabien.
Fabien added inline comments.
test/functional/p2p_headers_sync_with_minchainwork.py
68–82 ↗(On Diff #51661)

why making this complicated ?

Also I generally don't like overriding the timeout, this creates flaky tests for slow machines.

This revision now requires changes to proceed.Wed, Dec 18, 08:35
This revision is now accepted and ready to land.Wed, Dec 18, 20:11