Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ OTSCLIENT_VERSION="v0.9.0-dev"
PYCOIN_VERSION="v0.9.0-dev"
CYPHERAPPS_VERSION="dev"
BITCOIN_VERSION="v24.0.1-mosquitto-debian"
LIGHTNING_VERSION="v23.11.2-pg"
LIGHTNING_VERSION="v24.11.1-pg"
TRAEFIK_VERSION="v2.6.3"
MOSQUITTO_VERSION="1.6-openssl"
POSTGRES_VERSION="14.0-bullseye"
Expand Down
19 changes: 15 additions & 4 deletions proxy_docker/app/script/call_lightningd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,21 @@ ln_listpays() {
trace "Entering ln_listpays()..."

local result
local bolt11=${1}
trace "[ln_listpays] bolt11=${bolt11}"

result=$(ln_call_lightningd listpays "${bolt11}")
local request=${1}
local bolt11=$(echo "${request}" | jq -r '.bolt11 // ""')
local status=$(echo "${request}" | jq -r '.status // ""')
local start=$(echo "${request}" | jq -r '.start // ""')
local limit=$(echo "${request}" | jq -r '.limit // ""')
local cln_args=""
[ -n "${bolt11}" ] && cln_args="${cln_args} bolt11=${bolt11}"
[ -n "${status}" ] && cln_args="${cln_args} status=${status}"
[ -n "${start}" ] && cln_args="${cln_args} start=${start}"
[ -n "${limit}" ] && cln_args="${cln_args} limit=${limit}"
if [ -n "${start}" ] || [ -n "${limit}" ]; then
cln_args="${cln_args} index=created"
fi
trace "[ln_listpays] cln_args=${cln_args}"
result=$(ln_call_lightningd -k listpays ${cln_args})
returncode=$?

echo "${result}"
Expand Down
6 changes: 2 additions & 4 deletions proxy_docker/app/script/requesthandler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -824,12 +824,10 @@ main() {

# Let's make it work even for a GET request (equivalent to a POST with empty json object body)
if [ "$http_method" = "POST" ]; then
bolt11=$(echo "${line}" | jq -r ".bolt11 // empty")
response=$(ln_listpays "${line}")
else
bolt11=
response=$(ln_listpays "{}")
fi

response=$(ln_listpays "${bolt11}")
returncode=$?
;;
ln_paystatus)
Expand Down