mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge pull request #1480 from tomt1664/fix/mempool_unbroadcast_test
Fix `mempool_unbroadcast.py` test
This commit is contained in:
commit
3524ec0f83
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue