turn off description_hash check

This commit is contained in:
callebtc 2022-08-15 00:30:27 +02:00
parent 3f64ceb6c1
commit 52e1fc043a

View file

@ -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