mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-13 08:44:41 +02:00
test: fix intermittent failure in p2p_leak_tx.py
This commit is contained in:
@ -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