We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1d384 commit 55cc27dCopy full SHA for 55cc27d
tests/regtest/regtest.sh
@@ -779,7 +779,11 @@ if [[ $1 == "just_in_time" ]]; then
779
echo "carol pays alice"
780
# note: set amount to 0.001 to test failure: 'payment too low'
781
invoice=$($alice add_request 0.01 --lightning --memo "invoice" | jq -r ".lightning_invoice")
782
- $carol lnpay $invoice
+ success=$($carol lnpay $invoice| jq '.success')
783
+ if [[ $success != "true" ]]; then
784
+ echo "JIT payment failed"
785
+ exit 1
786
+ fi
787
fi
788
789
if [[ $1 == "unixsockets" ]]; then
0 commit comments