getAlby / lndhub.go

Accounting wrapper for the Lightning Network. It provides separate accounts for end-users. (LndHub compatible API written in Go)
GNU General Public License v3.0
86 stars 23 forks source link

Fix/invoice deletion #317

Closed kiwiidb closed 1 year ago

kiwiidb commented 1 year ago

Fixes #311 The issue was that the "delete invoice" call didn't work and this was not noticed because the error wasn't logged. We reproduced this but the real fix is to postpone the invoice db entry creation until after preliminary checks have taken place (amount, user balance, invoice expiry (todo #315 )).

In order to do this, this PR does the following things: