Start goroutine to check invoice when serving

This commit is contained in:
ekzyis 2023-09-09 22:52:51 +02:00
parent 82f6f9698e
commit ab2c80c6e8
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ func invoice(c echo.Context) error {
if invoice.Pubkey != session.Pubkey {
return echo.NewHTTPError(http.StatusUnauthorized, "Unauthorized")
}
go lnd.CheckInvoice(invoice.PaymentHash)
qr, err := ToQR(invoice.PaymentRequest)
if err != nil {
return err