[p2p] try multiple peers for orphan resolution
Co-authored-by: dergoegge <n.goeggi@gmail.com>
This commit is contained in:
1 parent
1d2e1d709c
commit
b6ea4a9afe
3 files changed
+97
-14
No files matched your search
@@ -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