From 2bad89f8c017e51cf6fac65a98f1e82eba01715d Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 26 Nov 2024 22:18:48 +0000 Subject: [PATCH] QA: p2p_opportunistic_1p1c: Adapt disconnection test for relaxed behaviour --- test/functional/p2p_opportunistic_1p1c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/p2p_opportunistic_1p1c.py b/test/functional/p2p_opportunistic_1p1c.py index 4477046c8d..227670303e 100755 --- a/test/functional/p2p_opportunistic_1p1c.py +++ b/test/functional/p2p_opportunistic_1p1c.py @@ -226,7 +226,7 @@ class PackageRelayTest(BitcoinTestFramework): tx_orphan_bad_wit.wit.vtxinwit.append(CTxInWitness()) tx_orphan_bad_wit.wit.vtxinwit[0].scriptWitness.stack = [b'garbage'] - bad_orphan_sender = node.add_p2p_connection(P2PInterface()) + bad_orphan_sender = node.add_outbound_p2p_connection(P2PInterface(), p2p_idx=0) parent_sender = node.add_p2p_connection(P2PInterface()) # 1. Child is received first. It is missing an input. @@ -266,7 +266,7 @@ class PackageRelayTest(BitcoinTestFramework): tx_parent_bad_wit.wit.vtxinwit[0].scriptWitness.stack = [b'garbage'] package_sender = node.add_p2p_connection(P2PInterface()) - fake_parent_sender = node.add_p2p_connection(P2PInterface()) + fake_parent_sender = node.add_outbound_p2p_connection(P2PInterface(), p2p_idx=0) # 1. Child is received first. It is missing an input. child_wtxid_int = int(high_fee_child["tx"].getwtxid(), 16)