mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge b4223dd5f1 into merged_master (Bitcoin PR #16079)
This commit is contained in:
commit
b737d90c22
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def create_transactions(node, address, amt, fees):
|
|||
assert utxo['asset'] == BITCOIN_ASSET
|
||||
inputs.append({"txid": utxo["txid"], "vout": utxo["vout"]})
|
||||
ins_total += utxo['amount']
|
||||
if ins_total + max(fees) > amt:
|
||||
if ins_total >= amt + max(fees):
|
||||
break
|
||||
# make sure there was enough utxos
|
||||
assert ins_total >= amt + max(fees)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue