From ee2417ed614d6a298f932ac068702ab2abee3cdf Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Mon, 12 Jun 2023 13:54:54 -0400 Subject: [PATCH] test: fix intermittent failure in p2p_leak_tx.py --- test/functional/p2p_leak_tx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/p2p_leak_tx.py b/test/functional/p2p_leak_tx.py index 0a331eb96e6..f53f98e06d1 100755 --- a/test/functional/p2p_leak_tx.py +++ b/test/functional/p2p_leak_tx.py @@ -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 = [