tfix sweep fee - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 200563c4e98add49e8b73097161ce0dc7bff30a9 DIR parent c4d822b0cff80f7cb8ff933178f6bce266f0af4a HTML Author: ThomasV <thomasv@gitorious> Date: Sun, 31 May 2015 17:49:59 +0200 fix sweep fee Diffstat: M lib/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -421,7 +421,9 @@ class Commands: out = "Error: Keypair import failed: " + str(e) return out - def sweep(self, privkey, to_address, fee = 0.0001): + def sweep(self, privkey, to_address, fee=None): + if fee is None: + fee = 0.0001 fee = int(Decimal(fee)*100000000) return Transaction.sweep([privkey], self.network, to_address, fee)