mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
gather_inputs: use correct variable in error message
"amount" and "fee" do not exist (anymore?).
This commit is contained in:
parent
9ea87f9e18
commit
5e2dcaebc4
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ def gather_inputs(from_node, amount_needed):
|
||||||
total_in += t["amount"]
|
total_in += t["amount"]
|
||||||
inputs.append({ "txid" : t["txid"], "vout" : t["vout"], "address" : t["address"] } )
|
inputs.append({ "txid" : t["txid"], "vout" : t["vout"], "address" : t["address"] } )
|
||||||
if total_in < amount_needed:
|
if total_in < amount_needed:
|
||||||
raise RuntimeError("Insufficient funds: need %d, have %d"%(amount+fee*2, total_in))
|
raise RuntimeError("Insufficient funds: need %d, have %d"%(amount_needed, total_in))
|
||||||
return (total_in, inputs)
|
return (total_in, inputs)
|
||||||
|
|
||||||
def make_change(from_node, amount_in, amount_out, fee):
|
def make_change(from_node, amount_in, amount_out, fee):
|
||||||
|
|
Loading…
Reference in a new issue