[p2p] try multiple peers for orphan resolution

Co-authored-by: dergoegge <n.goeggi@gmail.com>
This commit is contained in:
glozowanddergoegge committed 2025-01-06 09:02:05 -05:00
1 parent 1d2e1d709c
commit b6ea4a9afe
3 files changed
+97 -14

No files matched your search

+3
View File
@@ -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: