mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-18 13:08:52 +02:00
turn off description_hash check
This commit is contained in:
parent
3f64ceb6c1
commit
52e1fc043a
1 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue