fix trustedcoin plugin: get_max_amount
This commit is contained in:
parent
f8c1bd1d3b
commit
90cfc6af90
|
@ -217,15 +217,14 @@ class Wallet_2fa(Multisig_Wallet):
|
||||||
for i in inputs:
|
for i in inputs:
|
||||||
self.add_input_info(i)
|
self.add_input_info(i)
|
||||||
xf = self.extra_fee()
|
xf = self.extra_fee()
|
||||||
|
_type, addr = recipient
|
||||||
if xf and sendable >= xf:
|
if xf and sendable >= xf:
|
||||||
billing_address = self.billing_info['billing_address']
|
billing_address = self.billing_info['billing_address']
|
||||||
sendable -= xf
|
sendable -= xf
|
||||||
_type, addr = recipient
|
|
||||||
outputs = [(_type, addr, sendable),
|
outputs = [(_type, addr, sendable),
|
||||||
(TYPE_ADDRESS, billing_address, xf)]
|
(TYPE_ADDRESS, billing_address, xf)]
|
||||||
else:
|
else:
|
||||||
outputs = [(TYPE_ADDRESS, recipient, sendable)]
|
outputs = [(_type, addr, sendable)]
|
||||||
|
|
||||||
dummy_tx = Transaction.from_io(inputs, outputs)
|
dummy_tx = Transaction.from_io(inputs, outputs)
|
||||||
if fee is None:
|
if fee is None:
|
||||||
fee = self.estimate_fee(config, dummy_tx.estimated_size())
|
fee = self.estimate_fee(config, dummy_tx.estimated_size())
|
||||||
|
|
Loading…
Reference in New Issue