-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accounting: fallback to payment request for payments without htlcs
We have a lot of different payment formats in lnd, since the payments database has been migrated multiple times. We need to account for the following: - Legacy payments: settled, no htlcs present - In flight payments: not settled, no htlcs present - Keysend payments: no payment request - Sendpayment + dest: no payment request present Since we need to list all payments (an invoice settled in our period could have been send by a payment before the period), we update our code to not fail in the case where we do not know payment destination. This will result in legacy circular payments (that were made with no payment request) not being identified as circular payments (as well as their corresponding invoices). We log an error for this, and make a note of it in our docs. This should not be an issue for payments made by newer versions on lnd, because they have the information we require.
- Loading branch information
Showing
10 changed files
with
453 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.