mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
QA: p2p_opportunistic_1p1c: Adapt disconnection test for relaxed behaviour
This commit is contained in:
parent
6a179c5e14
commit
2bad89f8c0
@ -226,7 +226,7 @@ class PackageRelayTest(BitcoinTestFramework):
|
|||||||
tx_orphan_bad_wit.wit.vtxinwit.append(CTxInWitness())
|
tx_orphan_bad_wit.wit.vtxinwit.append(CTxInWitness())
|
||||||
tx_orphan_bad_wit.wit.vtxinwit[0].scriptWitness.stack = [b'garbage']
|
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())
|
parent_sender = node.add_p2p_connection(P2PInterface())
|
||||||
|
|
||||||
# 1. Child is received first. It is missing an input.
|
# 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']
|
tx_parent_bad_wit.wit.vtxinwit[0].scriptWitness.stack = [b'garbage']
|
||||||
|
|
||||||
package_sender = node.add_p2p_connection(P2PInterface())
|
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.
|
# 1. Child is received first. It is missing an input.
|
||||||
child_wtxid_int = int(high_fee_child["tx"].getwtxid(), 16)
|
child_wtxid_int = int(high_fee_child["tx"].getwtxid(), 16)
|
||||||
|
Loading…
Reference in New Issue
Block a user