info when no funding #209

This commit is contained in:
/geco
2018-12-23 13:37:15 +01:00
parent 102b223983
commit 3f989f9683

View File

@@ -58,11 +58,19 @@ if [ ${isInitialChainSync} -gt 0 ]; then
fi fi
else else
heigh=7 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") # check if wallet has any UTXO
if [ "$USER" = "admin" ]; then # reason see: https://github.com/lightningnetwork/lnd/issues/2326
heigh=6 txlines=$(sudo -u bitcoin lncli listchaintxns | wc -l)
width=53 # has just 4 lines if empty
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.") 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
fi fi