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

reserve fee amount in database #391

Closed kiwiidb closed 1 year ago

kiwiidb commented 1 year ago

This PR adds the maximum fee a user can pay to the amount that is debited from their account. In case of a succesful payment, this provisional max amount is credited to their balance again. In case of a failed payment, the transaction entry is reversed anyway, but I had to change this to use the right amount (the one from the entry to reverse, which was the same as the invoice amount up until now, but will be different now).

To do:

kiwiidb commented 1 year ago

Replaced by #395