mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
use lnd.initwallet2.py
This commit is contained in:
parent
dad7c556d0
commit
578dd42748
@ -195,13 +195,13 @@ if [ ${walletExists} -eq 0 ]; then
|
||||
clear
|
||||
echo "Generating new Wallet ...."
|
||||
source /home/admin/python3-env-lnd/bin/activate
|
||||
python /home/admin/config.scripts/lnd.initwallet.py new ${passwordC} > /home/admin/.seed.tmp
|
||||
python3 /home/admin/config.scripts/lnd.initwallet2.py new ${passwordC} > /home/admin/.seed.tmp
|
||||
source /home/admin/.seed.tmp
|
||||
sudo shred /home/admin/.pass.tmp 2>/dev/null
|
||||
|
||||
# in case of error - retry
|
||||
if [ ${#err} -gt 0 ]; then
|
||||
whiptail --title "lnd.initwallet.py - ERROR" --msgbox "${err}" 8 50
|
||||
whiptail --title "lnd.initwallet2.py - ERROR" --msgbox "${err}" 8 50
|
||||
/home/admin/70initLND.sh
|
||||
exit 1
|
||||
else
|
||||
|
@ -17,9 +17,9 @@ if len(sys.argv) <= 1 or sys.argv[1] == "-h" or sys.argv[1] == "help":
|
||||
print("# ! always activate virtual env first: source /home/admin/python-env-lnd/bin/activate")
|
||||
print("# ! and run with with: python /home/admin/config.scripts/lnd.initwallet.py")
|
||||
print("# creating or recovering the LND wallet")
|
||||
print("# lnd.initwallet.py new [walletpassword] [?seedpassword]")
|
||||
print("# lnd.initwallet.py seed [walletpassword] [\"seeds-words-seperated-spaces\"] [?seedpassword]")
|
||||
print("# lnd.initwallet.py scb [walletpassword] [\"seeds-words-seperated-spaces\"] [filepathSCB] [?seedpassword]")
|
||||
print("# lnd.initwallet2.py new [walletpassword] [?seedpassword]")
|
||||
print("# lnd.initwallet2.py seed [walletpassword] [\"seeds-words-seperated-spaces\"] [?seedpassword]")
|
||||
print("# lnd.initwallet2.py scb [walletpassword] [\"seeds-words-seperated-spaces\"] [filepathSCB] [?seedpassword]")
|
||||
print("err='missing parameters'")
|
||||
sys.exit(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user