test: fix intermittent failure in p2p_leak_tx.py

This commit is contained in:
Martin Zumsande 2023-06-12 13:54:54 -04:00
parent c92fd63886
commit ee2417ed61

View File

@ -57,6 +57,7 @@ class P2PLeakTxTest(BitcoinTestFramework):
tx_b = tx_a["tx"]
tx_b.vout[0].nValue -= 9000
self.gen_node.sendrawtransaction(tx_b.serialize().hex())
inbound_peer.wait_until(lambda: "tx" in inbound_peer.last_message and inbound_peer.last_message.get("tx").tx.getwtxid() == tx_b.getwtxid())
self.log.info("Re-request of tx_a after replacement is answered with notfound")
req_vec = [