test: fix intermittent failure in p2p_leak_tx.py
This commit is contained in:
1 parent
c92fd63886
commit
ee2417ed61
1 file changed
+1
@@ -57,6 +57,7 @@ class P2PLeakTxTest(BitcoinTestFramework):
|
|||||||
tx_b = tx_a["tx"]
|
tx_b = tx_a["tx"]
|
||||||
tx_b.vout[0].nValue -= 9000
|
tx_b.vout[0].nValue -= 9000
|
||||||
self.gen_node.sendrawtransaction(tx_b.serialize().hex())
|
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")
|
self.log.info("Re-request of tx_a after replacement is answered with notfound")
|
||||||
req_vec = [
|
req_vec = [
|
||||||
|
|||||||
Reference in new issue
Block a user