mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 09:57:17 +01:00
added create invoice
This commit is contained in:
@@ -68,6 +68,8 @@ if [ ${#invoice} -eq 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# TODO: maybe try/show the decoded info first by using https://api.lightning.community/#decodepayreq
|
||||
|
||||
# build command
|
||||
command="lncli sendpayment --pay_req=${invoice}"
|
||||
|
||||
@@ -80,7 +82,7 @@ echo ""
|
||||
echo "COMMAND LINE: "
|
||||
echo $command
|
||||
echo ""
|
||||
echo "RESULT:"
|
||||
echo "RESULT (may wait in case of timeout):"
|
||||
|
||||
# execute command
|
||||
result=$($command 2>$_error)
|
||||
@@ -95,9 +97,10 @@ if [ ${#error} -gt 0 ]; then
|
||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
||||
echo "${error}"
|
||||
else
|
||||
echo "${result}"
|
||||
echo "******************************"
|
||||
echo "WIN"
|
||||
echo "******************************"
|
||||
echo "${result}"
|
||||
echo "It worked :) - check out the service you were paying."
|
||||
fi
|
||||
echo ""
|
||||
Reference in New Issue
Block a user