mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
info when no funding #209
This commit is contained in:
parent
102b223983
commit
3f989f9683
@ -58,11 +58,19 @@ if [ ${isInitialChainSync} -gt 0 ]; then
|
||||
fi
|
||||
else
|
||||
heigh=7
|
||||
infoStr=$(echo " Lightning ${action} Blockchain\n Progress: ${scanstate}\n Please wait - this can take some time\n ssh admin@${localip}\n Password A")
|
||||
if [ "$USER" = "admin" ]; then
|
||||
heigh=6
|
||||
width=53
|
||||
infoStr=$(echo " Lightning ${action} Blockchain\n Progress: ${scanstate}\n Please wait - this can take some long time.\n Its OK to close terminal and ssh back in later.")
|
||||
# check if wallet has any UTXO
|
||||
# reason see: https://github.com/lightningnetwork/lnd/issues/2326
|
||||
txlines=$(sudo -u bitcoin lncli listchaintxns | wc -l)
|
||||
# has just 4 lines if empty
|
||||
if [ ${txlines} -eq 4 ]; then
|
||||
infoStr=$(echo " Lightning ${action} Blockchain\n Progress: ${scanstate}\n Will rescan every start until funding available. \n ssh admin@${localip}\n Password A")
|
||||
else
|
||||
infoStr=$(echo " Lightning ${action} Blockchain\n Progress: ${scanstate}\n Please wait - this can take some time\n ssh admin@${localip}\n Password A")
|
||||
if [ "$USER" = "admin" ]; then
|
||||
heigh=6
|
||||
width=53
|
||||
infoStr=$(echo " Lightning ${action} Blockchain\n Progress: ${scanstate}\n Please wait - this can take some long time.\n Its OK to close terminal and ssh back in later.")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user