QA: p2p_opportunistic_1p1c: Adapt disconnection test for relaxed behaviour

This commit is contained in:
Luke Dashjr 2024-11-26 22:18:48 +00:00
parent 6a179c5e14
commit 2bad89f8c0

View File

@ -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)