Commit Graph
6 Commits
Author SHA1 Message Date
fiatjaf f19b00c4c0 Fix error message for wrong size description_hash. 2019-09-11 11:09:52 -03:00
Joost Jager 4105142c96 channeldb+invoices: add invoice htlcs
This commit adds a set of htlcs to the Invoice struct and
serializes/deserializes this set to/from disk. It is a preparation for
accurate invoice accounting across restarts of lnd.

A migration is added for the invoice htlcs.

In addition to these changes, separate final cltv delta and expiry
invoice fields are created and populated. Previously it was required
to decode this from the stored payment request. The reason to create
a combined commit is to prevent multiple migrations.
2019-09-04 19:20:17 +02:00
Otto Suess c843835a05 invoicesrpc: fix route hint off-by-one-error
right now it is possible to add 21 route hints which results in an error.
2019-07-12 08:51:30 +02:00
Joost Jager 19f79613df channeldb: store hold invoice 2019-03-15 10:08:55 +01:00
Joost Jager 8392f6d28f lnrpc/invoicesrpc: remove lnrpc type from add invoice 2019-03-15 10:08:52 +01:00
Joost Jager b9cc165341 lnrpc: move add invoice logic to subserver 2019-03-15 10:08:49 +01:00