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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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