channeldb: add k/v implementation for InvoiceDB.FetchPendingInvoices

This commit is contained in:
Andras Banki-Horvath committed 2023-10-18 16:15:57 +02:00
1 parent ad5cd9c8bb
commit 1f8065de35
4 files changed
+127

No files matched your search

+5
View File
@@ -56,6 +56,11 @@ type InvoiceDB interface {
ScanInvoices(ctx context.Context, scanFunc InvScanFunc,
reset func()) error
// FetchPendingInvoices returns all invoices that have not yet been
// settled or canceled.
FetchPendingInvoices(ctx context.Context) (map[lntypes.Hash]Invoice,
error)
// QueryInvoices allows a caller to query the invoice database for
// invoices within the specified add index range.
QueryInvoices(ctx context.Context, q InvoiceQuery) (InvoiceSlice, error)