Page MenuHomePhabricator

test: Avoid intermittent timeout in feature_assumevalid.py
ClosedPublic

Authored by PiRK on Fri, Jan 31, 19:00.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCb70bc3b15dcd: test: Avoid intermittent timeout in feature_assumevalid.py
Summary

Currently the test will spin up p2p connections in the beginning, then announce the headers to all nodes, but only send the blocks sequentially. This takes a long time, so when getting to the last node, it will have already timed out, while node1 is busy eating blocks.

Fix this by only spinning up the p2p connection right before they are needed.

This is a backport of core#26651

Test Plan

ninja check-functional

Diff Detail