detail on channel.backup error

This commit is contained in:
Christian Rotzoll 2019-04-17 04:01:11 +01:00
parent 4c281ad09d
commit 98baf5f688

View File

@ -483,7 +483,7 @@ fi
echo "" echo ""
###### USE CHANNEL.BACKUP FILE IF AVAILABLE ###### USE CHANNEL.BACKUP FILE IF AVAILABLE
echo "*** SCB Recovery ***" echo "*** channel.backup Recovery ***"
gotSCB=$(ls /home/admin/channel.backup | grep -c 'channel.backup') gotSCB=$(ls /home/admin/channel.backup | grep -c 'channel.backup')
if [ ${gotSCB} -eq 1 ]; then if [ ${gotSCB} -eq 1 ]; then
@ -494,11 +494,22 @@ if [ ${gotSCB} -eq 1 ]; then
if [ ${#error} -gt 0 ]; then if [ ${#error} -gt 0 ]; then
echo "" echo ""
echo "!!! FAIL !!! SOMETHING WENT WRONG:" echo "!!! FAIL !!! SOMETHING WENT WRONG:"
echo "${error}"
notMachtingSeed=$(echo $error | grep -c 'unable to unpack chan backup')
if [ ${notMachtingSeed} -gt 0 ]; then
echo "--> unable to unpack chan backup"
echo "The WORD SEED is not matching the channel.backup file."
echo "Either there was an error in the word seed list or"
echo "or the channel.backup file is from another RaspiBlitz."
else
echo "${error}"
fi
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "" echo ""
echo "You can try after full setup to restore channel.backup file again." echo "You can try after full setup to restore channel.backup file again with:"
echo "Press ENTER to continue ..." echo "lncli restorechanbackup --multi_file=/home/admin/channel.backup"
echo "Press ENTER to continue for now ..."
read key read key
exit 1 exit 1
fi fi