mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-30 12:36:07 +02:00
updated script to lnd0.52
This commit is contained in:
parent
11e5b72492
commit
62e0bf7587
@ -14,6 +14,7 @@ fi
|
||||
|
||||
echo ""
|
||||
echo "*** Precheck ***"
|
||||
echo "please wait a moment ..."
|
||||
|
||||
# check if chain is in sync
|
||||
chainInSync=$(lncli --chain=${network} --network=${chain}net getinfo | grep '"synced_to_chain": true' -c)
|
||||
@ -81,9 +82,11 @@ command="lncli --chain=${network} --network=${chain}net sendpayment --force --pa
|
||||
|
||||
# info output
|
||||
clear
|
||||
echo "******************************"
|
||||
echo "************************************************************"
|
||||
echo "Pay Invoice / Payment Request"
|
||||
echo "******************************"
|
||||
echo "This script is as an example how to use the lncli interface."
|
||||
echo "Its not optimized for performance or error handling."
|
||||
echo "************************************************************"
|
||||
echo ""
|
||||
echo "COMMAND LINE: "
|
||||
echo $command
|
||||
@ -97,9 +100,15 @@ error=`cat ${_error}`
|
||||
#echo "result(${result})"
|
||||
#echo "error(${error})"
|
||||
|
||||
resultIsError=$(echo "${result}" | grep -c "payment_error")
|
||||
if [ ${resultIsError} -gt 0 ]; then
|
||||
error="${result}"
|
||||
fi
|
||||
|
||||
if [ ${#error} -gt 0 ]; then
|
||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
||||
echo "FAIL"
|
||||
echo "try with a wallet app or the RTL WebGUI (see services)"
|
||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
||||
echo "${error}"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user