Start goroutine to check invoice when serving
This commit is contained in:
parent
82f6f9698e
commit
ab2c80c6e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue