mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix sweep fee
This commit is contained in:
parent
c4d822b0cf
commit
200563c4e9
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue