mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 04:45:16 +00:00
replace options.wallet_path with wallet.path
This commit is contained in:
parent
9b2f5805da
commit
dded634f65
1 changed files with 4 additions and 4 deletions
8
electrum
8
electrum
|
@ -161,7 +161,7 @@ if __name__ == '__main__':
|
||||||
print "found no history for this wallet"
|
print "found no history for this wallet"
|
||||||
wallet.fill_addressbook()
|
wallet.fill_addressbook()
|
||||||
wallet.save()
|
wallet.save()
|
||||||
print "Wallet saved in '%s'"%options.wallet_path
|
print "Wallet saved in '%s'"%wallet.path
|
||||||
else:
|
else:
|
||||||
wallet.new_seed(None)
|
wallet.new_seed(None)
|
||||||
wallet.init_mpk( wallet.seed )
|
wallet.init_mpk( wallet.seed )
|
||||||
|
@ -272,8 +272,8 @@ if __name__ == '__main__':
|
||||||
elif wallet.use_encryption:
|
elif wallet.use_encryption:
|
||||||
print "Error: This wallet is encrypted"
|
print "Error: This wallet is encrypted"
|
||||||
else:
|
else:
|
||||||
ns = options.wallet_path+'.seed'
|
ns = wallet.path + '.seed'
|
||||||
print "Warning: you are going to extract the seed from '%s'\nThe seed will be saved in '%s'"%(options.wallet_path,ns)
|
print "Warning: you are going to extract the seed from '%s'\nThe seed will be saved in '%s'"%(wallet.path,ns)
|
||||||
if raw_input("Are you sure you want to continue? (y/n) ") in ['y','Y','yes']:
|
if raw_input("Are you sure you want to continue? (y/n) ") in ['y','Y','yes']:
|
||||||
f = open(ns,'w')
|
f = open(ns,'w')
|
||||||
f.write(wallet.seed)
|
f.write(wallet.seed)
|
||||||
|
@ -288,7 +288,7 @@ if __name__ == '__main__':
|
||||||
if wallet.seed:
|
if wallet.seed:
|
||||||
print "This wallet already has a seed", wallet.seed
|
print "This wallet already has a seed", wallet.seed
|
||||||
else:
|
else:
|
||||||
ns = options.wallet_path+'.seed'
|
ns = wallet.path + '.seed'
|
||||||
try:
|
try:
|
||||||
f = open(ns,'r')
|
f = open(ns,'r')
|
||||||
seed = f.read()
|
seed = f.read()
|
||||||
|
|
Loading…
Add table
Reference in a new issue