diff --git a/test/functional/mempool_unbroadcast.py b/test/functional/mempool_unbroadcast.py index 7bcbc31dce..8fdf3f88eb 100755 --- a/test/functional/mempool_unbroadcast.py +++ b/test/functional/mempool_unbroadcast.py @@ -41,6 +41,10 @@ def test_broadcast(self): # generate a wallet txn addr = node.getnewaddress() wallet_tx_hsh = node.sendtoaddress(addr, 0.0001) + wallet_tx = node.gettransaction(wallet_tx_hsh,True,True) + + # remove UTXO spent + utxos = [utxo for utxo in utxos if utxo['txid'] != wallet_tx['decoded']['vin'][0]['txid']] # generate a txn using sendrawtransaction us0 = utxos.pop()