From ab2c80c6e874e8d140d6260d44a91ff85829c27e Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 9 Sep 2023 22:52:51 +0200 Subject: [PATCH] Start goroutine to check invoice when serving --- src/lnd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lnd.go b/src/lnd.go index d4fa49e..d07e59f 100644 --- a/src/lnd.go +++ b/src/lnd.go @@ -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