mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-07 19:19:48 +00:00
set wallet file permissions
This commit is contained in:
parent
9ee946c797
commit
3ae348791f
1 changed files with 3 additions and 1 deletions
|
@ -616,6 +616,8 @@ class Wallet:
|
||||||
f = open(self.path,"w")
|
f = open(self.path,"w")
|
||||||
f.write( repr(s) )
|
f.write( repr(s) )
|
||||||
f.close()
|
f.close()
|
||||||
|
import stat
|
||||||
|
os.chmod(self.path,stat.S_IREAD | stat.S_IWRITE)
|
||||||
|
|
||||||
def read(self):
|
def read(self):
|
||||||
import interface
|
import interface
|
||||||
|
@ -735,7 +737,7 @@ class Wallet:
|
||||||
fee = self.fee*len(inputs) if fixed_fee is None else fixed_fee
|
fee = self.fee*len(inputs) if fixed_fee is None else fixed_fee
|
||||||
if total >= amount + fee: break
|
if total >= amount + fee: break
|
||||||
else:
|
else:
|
||||||
#print "not enough funds: %d %d"%(total, fee)
|
#print "not enough funds: %s %s"%(format_satoshis(total), format_satoshis(fee))
|
||||||
inputs = []
|
inputs = []
|
||||||
return inputs, total, fee
|
return inputs, total, fee
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue