aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests
diff options
context:
space:
mode:
authordexX7 <ugithub@bitwatch.co>2014-11-07 15:47:29 +0100
committerdexX7 <ugithub@bitwatch.co>2014-11-07 15:47:29 +0100
commit5e2dcaebc44660de1e886e58fd7797318c45ef1e (patch)
tree45a72586970cff33e4f2dc3f9faa706d8be0b839 /qa/rpc-tests
parent9ea87f9e187da41964c3cafdadf54b2f767c3450 (diff)
gather_inputs: use correct variable in error message
"amount" and "fee" do not exist (anymore?).
Diffstat (limited to 'qa/rpc-tests')
-rw-r--r--qa/rpc-tests/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/util.py b/qa/rpc-tests/util.py
index c895eb1619..e5383b6c57 100644
--- a/qa/rpc-tests/util.py
+++ b/qa/rpc-tests/util.py
@@ -225,7 +225,7 @@ def gather_inputs(from_node, amount_needed):
total_in += t["amount"]
inputs.append({ "txid" : t["txid"], "vout" : t["vout"], "address" : t["address"] } )
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)
def make_change(from_node, amount_in, amount_out, fee):