tfix estimate_fee - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 34e3261efd62bd69264ef543432e93142fd87e1f DIR parent 714445aba88a435f2c71b09c042c48e71610fc36 HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 6 Aug 2015 19:26:34 +0200 fix estimate_fee Diffstat: M lib/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -389,7 +389,8 @@ class Commands: self.wallet.add_input_info(i) output = ('address', address, amount) dummy_tx = Transaction.from_io(inputs, [output]) - fee = self.wallet.estimated_fee(dummy_tx) + fee_per_kb = self.wallet.fee_per_kb(self.config) + fee = self.wallet.estimated_fee(dummy_tx, fee_per_kb) amount -= fee else: amount = int(COIN*Decimal(amount))