mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
win/fail user feedback
This commit is contained in:
@@ -284,8 +284,29 @@ to protect the seed words. Most users dont set this.
|
||||
# trigger wallet recovery
|
||||
source <(python /home/admin/config.scripts/lnd.initwallet.py seed ${passwordC} ${wordstring} ${passwordD})
|
||||
|
||||
echo "TODO: ONLYSEED words(${wordstring})"
|
||||
# on success the python script should return the seed words again
|
||||
if [ ${#seedwords} -gt 1 ]; then
|
||||
dialog --title " SUCCESS " --msgbox "
|
||||
Looks good :) LND was able to recover the wallet.
|
||||
" 7 53
|
||||
else
|
||||
if [ ${#err} -eq 0 ]; then
|
||||
echo
|
||||
echo "FAIL!! Unkown Error - check output above for any hints and report to development."
|
||||
echo "PRESS ENTER to try again."
|
||||
read key
|
||||
/home/admin/70initLND.sh
|
||||
exit 1
|
||||
else
|
||||
whiptail --title " FAIL " --msgbox "
|
||||
Something went wrong - see info below:
|
||||
${err}
|
||||
${errMore}
|
||||
" 13 72
|
||||
/home/admin/70initLND.sh
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "${CHOICE}" == "SEED+SCB" ]; then
|
||||
|
||||
@@ -337,8 +358,30 @@ to protect the seed words. Most users dont set this.
|
||||
# trigger wallet recovery
|
||||
source <(python /home/admin/config.scripts/lnd.initwallet.py seed ${passwordC} ${wordstring} /home/admin/channel.backup ${passwordD})
|
||||
|
||||
echo "TODO: Implement recovery with channel backup file"
|
||||
# WIN/FAIL User feedback
|
||||
# on success the python script should return the seed words again
|
||||
if [ ${#seedwords} -gt 1 ]; then
|
||||
dialog --title " SUCCESS " --msgbox "
|
||||
Looks good :) LND was able to recover the wallet.
|
||||
" 7 53
|
||||
else
|
||||
if [ ${#err} -eq 0 ]; then
|
||||
echo
|
||||
echo "FAIL!! Unkown Error - check output above for any hints and report to development."
|
||||
echo "PRESS ENTER to try again."
|
||||
read key
|
||||
/home/admin/70initLND.sh
|
||||
exit 1
|
||||
else
|
||||
whiptail --title " FAIL " --msgbox "
|
||||
Something went wrong - see info below:
|
||||
${err}
|
||||
${errMore}
|
||||
" 13 72
|
||||
/home/admin/70initLND.sh
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "${CHOICE}" == "LNDRESCUE" ]; then
|
||||
sudo /home/admin/config.scripts/lnd.rescue.sh restore
|
||||
|
Reference in New Issue
Block a user