From 34e3261efd62bd69264ef543432e93142fd87e1f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 6 Aug 2015 19:26:34 +0200 Subject: [PATCH] fix estimate_fee --- lib/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index 7453255d0..d49e8dace 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -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))