mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-29 11:11:47 +01:00
show message when seed is not avalilable
This commit is contained in:
parent
ae719bcf73
commit
3b42595e3a
@ -355,12 +355,13 @@ elif [ "$1" = "encrypt" ]; then
|
||||
shred /home/bitcoin/.lightning/${CLNETWORK}/seedwords.info
|
||||
fi
|
||||
echo "
|
||||
# This file is placed by cl.hsmtool.sh .
|
||||
# This file was placed by cl.hsmtool.sh
|
||||
# The seed words from which the hsm_secret in the same directory was generated from
|
||||
# were $deletedWhen.
|
||||
# The words cannot be generated from the hsm_secret (one way function).
|
||||
# If you don't have the words the hsm_secret can be still backed up in hex:
|
||||
# If you don't have the words the hsm_secret can be still backed up as a file or in hex:
|
||||
# https://lightning.readthedocs.io/BACKUP.html#hsm-secret
|
||||
# https://github.com/rootzoll/raspiblitz/blob/dev/FAQ.cl.md#seed
|
||||
" | sudo -u bitcoin tee /home/bitcoin/.lightning/${CLNETWORK}/seedwords.info
|
||||
# encrypt
|
||||
walletPassword=$3
|
||||
|
@ -412,16 +412,23 @@ if [ "$1" = "display-seed" ]; then
|
||||
source ${seedwordFile}
|
||||
#echo "# seedwords(${seedwords})"
|
||||
#echo "# seedwords6x4(${seedwords6x4})"
|
||||
ack=0
|
||||
while [ ${ack} -eq 0 ]
|
||||
do
|
||||
whiptail --title "C-Lightning ${displayNetwork} Wallet" \
|
||||
--msgbox "This is your C-Lightning ${displayNetwork} wallet seed. Store these numbered words in a safe location:\n\n${seedwords6x4}" 13 76
|
||||
whiptail --title "Please Confirm" --yes-button "Show Again" --no-button "CONTINUE" --yesno " Are you sure that you wrote down the word list?" 8 55
|
||||
if [ $? -eq 1 ]; then
|
||||
ack=1
|
||||
fi
|
||||
done
|
||||
if [ ${#seedwords6x4} -gt 0 ];then
|
||||
ack=0
|
||||
while [ ${ack} -eq 0 ]
|
||||
do
|
||||
whiptail --title "C-Lightning ${displayNetwork} Wallet" \
|
||||
--msgbox "This is your C-Lightning ${displayNetwork} wallet seed. Store these numbered words in a safe location:\n\n${seedwords6x4}" 13 76
|
||||
whiptail --title "Please Confirm" --yes-button "Show Again" --no-button "CONTINUE" --yesno " Are you sure that you wrote down the word list?" 8 55
|
||||
if [ $? -eq 1 ]; then
|
||||
ack=1
|
||||
fi
|
||||
done
|
||||
else
|
||||
dialog \
|
||||
--title "C-Lightning ${displayNetwork} Wallet" \
|
||||
--exit-label "exit" \
|
||||
--textbox "${seedwordFile}" 14 92
|
||||
fi
|
||||
else
|
||||
# hsmFile="/home/bitcoin/.lightning/${CLNETWORK}/hsm_secret"
|
||||
whiptail --title "C-Lightning ${displayNetwork} Wallet Info" --msgbox "Your C-Lightning ${displayNetwork} wallet was already created before - there are no seed words available.\n\nTo secure your wallet secret you can manually backup the file: /home/bitcoin/.lightning/${CLNETWORK}/hsm_secret" 11 76
|
||||
|
Loading…
x
Reference in New Issue
Block a user