fix #2096 (variable name)
This commit is contained in:
parent
63cff71f91
commit
1e24dbd94b
|
@ -816,7 +816,7 @@ class Abstract_Wallet(PrintError):
|
||||||
raise BaseException("More than one output set to spend max")
|
raise BaseException("More than one output set to spend max")
|
||||||
i_max = i
|
i_max = i
|
||||||
|
|
||||||
# Avoid index-out-of-range with coins[0] below
|
# Avoid index-out-of-range with inputs[0] below
|
||||||
if not inputs:
|
if not inputs:
|
||||||
raise NotEnoughFunds()
|
raise NotEnoughFunds()
|
||||||
|
|
||||||
|
@ -837,7 +837,7 @@ class Abstract_Wallet(PrintError):
|
||||||
if not change_addrs:
|
if not change_addrs:
|
||||||
change_addrs = [random.choice(addrs)]
|
change_addrs = [random.choice(addrs)]
|
||||||
else:
|
else:
|
||||||
change_addrs = [coins[0]['address']]
|
change_addrs = [inputs[0]['address']]
|
||||||
|
|
||||||
# Fee estimator
|
# Fee estimator
|
||||||
if fixed_fee is None:
|
if fixed_fee is None:
|
||||||
|
|
Loading…
Reference in New Issue