Browse Source

fix sweep fee

283
ThomasV 10 years ago
parent
commit
200563c4e9
  1. 4
      lib/commands.py

4
lib/commands.py

@ -421,7 +421,9 @@ class Commands:
out = "Error: Keypair import failed: " + str(e) out = "Error: Keypair import failed: " + str(e)
return out 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) fee = int(Decimal(fee)*100000000)
return Transaction.sweep([privkey], self.network, to_address, fee) return Transaction.sweep([privkey], self.network, to_address, fee)

Loading…
Cancel
Save