commit 200563c4e98add49e8b73097161ce0dc7bff30a9
parent c4d822b0cff80f7cb8ff933178f6bce266f0af4a
Author: ThomasV <thomasv@gitorious>
Date: Sun, 31 May 2015 17:49:59 +0200
fix sweep fee
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -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)