File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ def test_orphans_overlapping_parents(self):
339
339
340
340
# The wtxid and txid need to be the same for the node to recognize that the missing input
341
341
# and in-flight request for inflight_parent_AB are the same transaction.
342
- assert_equal (inflight_parent_AB ["txid" ], inflight_parent_AB ["tx" ]. getwtxid () )
342
+ assert_equal (inflight_parent_AB ["txid" ], inflight_parent_AB ["wtxid" ] )
343
343
344
344
# Announce inflight_parent_AB and wait for getdata
345
345
peer_txrequest .send_and_ping (msg_inv ([CInv (t = MSG_WTX , h = int (inflight_parent_AB ["tx" ].getwtxid (), 16 ))]))
@@ -365,6 +365,10 @@ def test_orphans_overlapping_parents(self):
365
365
peer_orphans .wait_for_parent_requests ([int (missing_parent_B ["txid" ], 16 )])
366
366
peer_orphans .assert_never_requested (int (inflight_parent_AB ["txid" ], 16 ))
367
367
368
+ # But inflight_parent_AB will be requested eventually if original peer doesn't respond
369
+ node .bumpmocktime (GETDATA_TX_INTERVAL )
370
+ peer_orphans .wait_for_parent_requests ([int (inflight_parent_AB ["txid" ], 16 )])
371
+
368
372
@cleanup
369
373
def test_orphan_of_orphan (self ):
370
374
node = self .nodes [0 ]
You can’t perform that action at this time.
0 commit comments