From 69f2b3ce3c3a4253f368b0b1d8d81cedb700c6f5 Mon Sep 17 00:00:00 2001 From: kexkey Date: Fri, 13 Dec 2019 15:26:42 -0500 Subject: [PATCH] Make the comments clearer --- proxy_docker/app/script/call_lightningd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy_docker/app/script/call_lightningd.sh b/proxy_docker/app/script/call_lightningd.sh index 34308b6..dd34281 100644 --- a/proxy_docker/app/script/call_lightningd.sh +++ b/proxy_docker/app/script/call_lightningd.sh @@ -332,12 +332,13 @@ ln_pay() { result="{\"result\":\"error\",\"expected_msatoshi\":${expected_msatoshi},\"invoice_msatoshi\":${invoice_msatoshi}}" returncode=1 elif [ -n "${expected_description}" ] && [ "${expected_description}" != "null" ] && [ "${expected_description}" != "${invoice_description}" ]; then - # If expected description is empty, we accept any description on the invoice. Amount is the most important thing. + # If expected description is not empty but doesn't correspond to invoice_description, there'a problem. + # (we don't care about the description if expected description is empty. Amount is the most important thing) result="{\"result\":\"error\",\"expected_description\":${expected_description},\"invoice_description\":${invoice_description}}" returncode=1 else - # Amount and description is as expected, let's pay! + # Amount and description are as expected (or empty description), let's pay! trace "[ln_pay] Amount and description are as expected, let's try to pay!" if [ "${invoice_msatoshi}" = "null" ]; then