From 52e1fc043a4f0e348ecba0aa458f501d178fe5e4 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 15 Aug 2022 00:30:27 +0200 Subject: [PATCH] turn off description_hash check --- internal/telegram/lnurl-pay.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/telegram/lnurl-pay.go b/internal/telegram/lnurl-pay.go index 000adc7..2bc5d51 100644 --- a/internal/telegram/lnurl-pay.go +++ b/internal/telegram/lnurl-pay.go @@ -212,11 +212,13 @@ func (bot *TipBot) lnurlPayHandlerSend(ctx intercept.Context) (intercept.Context return ctx, errors.New(errors.InvalidSyntaxError, err) } - if bolt11.DescriptionHash != lnurlPayState.DescriptionHash { - log.Errorf("[lnurlPayHandlerSend] Error: description hash doesn't match") - bot.tryEditMessage(statusMsg, fmt.Sprintf(Translate(ctx, "errorReasonMessage"), "description hash doesn't match.\nExpected: `"+lnurlPayState.DescriptionHash+"` Received: `"+bolt11.DescriptionHash+"`")) - return ctx, fmt.Errorf("description hash doesn't match") - } + // todo: doesn't work with lnurls from lnbits?? + + // if bolt11.DescriptionHash != lnurlPayState.DescriptionHash { + // log.Errorf("[lnurlPayHandlerSend] Error: description hash doesn't match") + // bot.tryEditMessage(statusMsg, fmt.Sprintf(Translate(ctx, "errorReasonMessage"), "description hash doesn't match.\nExpected: `"+lnurlPayState.DescriptionHash+"` Received: `"+bolt11.DescriptionHash+"`")) + // return ctx, fmt.Errorf("description hash doesn't match") + // } // all good lnurlPayState.LNURLPayValues = response2