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

add tx entry tuple constraint #287

Closed kiwiidb closed 1 year ago

kiwiidb commented 1 year ago

Fixes #155

Reproducing the bug: https://www.loom.com/share/a45b23b389b847c4a83ae34edb1ab299 Note that this doesn't really solve an issue with the database connection between the 2 db transactions in HandleFailedPayment, for that we need to implement #286 . But this would prevent inconsitent data in the db.