Browse Source

correct output

master
Christian Rotzoll 6 years ago
parent
commit
f186a4f27f
  1. 6
      home.admin/71initLND.sh
  2. 6
      home.admin/config.scripts/lnd.initwallet.py

6
home.admin/71initLND.sh

@ -7,8 +7,10 @@
# - systemd says its running
# - TLS.cert was created
# UI: Ask if user wants NEW wallet or RECOVER a wallet
# CHECK 3: Does LND wallet already exists
# - yes: Jump to next point or ask to delete
# UI: Ask if user wants NEW wallet or RECOVER a wallet
source lnd/bin/activate
python /home/admin/config.scripts/lnd.initwallet.py new ahdahdkash
python /home/admin/config.scripts/lnd.initwallet.py new 12345678

6
home.admin/config.scripts/lnd.initwallet.py

@ -62,9 +62,9 @@ if mode=="new":
#)
request = ln.GenSeedRequest()
response = stub.GenSeed(request)
print(response)
seedwords = response.cipher_seed_mnemonic
print(len(seedwords))
seedwordsString=','.join(seedwords)
print("seedwords='"+seedwordsString+"'")
# TODO: do first https://api.lightning.community/#genseed
@ -77,7 +77,7 @@ if mode=="new":
cipher_seed_mnemonic=seedwords
)
response = stub.InitWallet(request)
print(response)
#print(response)
elif mode=="seed":

Loading…
Cancel
Save