Skip to content

Commit

Permalink
lnurl.sh: Use deschashonly invoice option
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarenik committed Mar 30, 2022
1 parent 8476c9e commit e233d6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cgi-bin/lnurl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ done

test "$comment" = "" || { label="$label-$comment"; desc="$comment"; }

PR=$(lightning-cli invoice "$amount" "$label" "$desc" | jq -r .bolt11) || {
PR=$(lightning-cli -k invoice \
msatoshi="$amount" \
label="$label" \
description="$desc" \
deschashonly=true \
exposeprivatechannels="728591x176x1" | jq -r .bolt11) || {
res 400 "Something wrong" text/plain "Something went wrong"
}

Expand Down

0 comments on commit e233d6f

Please sign in to comment.