HomePhabricator

test: Avoid intermittent timeout in feature_assumevalid.py

Description

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>Authored on Dec 7 2022, 09:47
PiRKCommitted on Fri, Jan 31, 19:16
PiRKPushed on Fri, Jan 31, 19:16
Reviewer
Restricted Project
Differential Revision
D17620: test: Avoid intermittent timeout in feature_assumevalid.py
Parents
rABC82cfa296052e: [avalanche] Track the finalized txs total sigchecks
Branches
Unknown
Tags
Unknown