Merge pull request #1480 from tomt1664/fix/mempool_unbroadcast_test

Fix `mempool_unbroadcast.py` test
This commit is contained in:
Byron Hambly 2025-07-30 10:17:50 +02:00 committed by GitHub
commit 3524ec0f83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,10 @@ class MempoolUnbroadcastTest(BitcoinTestFramework):
# 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()