mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-27 14:01:12 +02:00
[p2p] try multiple peers for orphan resolution
Co-authored-by: dergoegge <n.goeggi@gmail.com>
This commit is contained in:
@@ -2051,6 +2051,9 @@ class SegWitTest(BitcoinTestFramework):
|
||||
self.wtx_node.last_message.pop("getdata", None)
|
||||
test_transaction_acceptance(self.nodes[0], self.wtx_node, tx2, with_witness=True, accepted=False)
|
||||
|
||||
# Disconnect tx_node to avoid the possibility of it being selected for orphan resolution.
|
||||
self.tx_node.peer_disconnect()
|
||||
|
||||
# Expect a request for parent (tx) by txid despite use of WTX peer
|
||||
self.wtx_node.wait_for_getdata([tx.sha256], timeout=60)
|
||||
with p2p_lock:
|
||||
|
Reference in New Issue
Block a user