electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 90cfc6af90856b0e62f0638141b2f64197eace90
parent f8c1bd1d3b1595cc2911170e68cb5bdcf95ea29b
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 30 Jul 2016 09:36:59 +0200

fix trustedcoin plugin: get_max_amount

Diffstat:
Mplugins/trustedcoin/trustedcoin.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/trustedcoin/trustedcoin.py b/plugins/trustedcoin/trustedcoin.py @@ -217,15 +217,14 @@ class Wallet_2fa(Multisig_Wallet): for i in inputs: self.add_input_info(i) xf = self.extra_fee() + _type, addr = recipient if xf and sendable >= xf: billing_address = self.billing_info['billing_address'] sendable -= xf - _type, addr = recipient outputs = [(_type, addr, sendable), (TYPE_ADDRESS, billing_address, xf)] else: - outputs = [(TYPE_ADDRESS, recipient, sendable)] - + outputs = [(_type, addr, sendable)] dummy_tx = Transaction.from_io(inputs, outputs) if fee is None: fee = self.estimate_fee(config, dummy_tx.estimated_size())