lnd/invoices
Andras Banki-Horvath e45ed86263
invoices: fix and correctly cover paginated queries
Previously paginated queries offseted the add_index_get, add_index_let,
settle_index_get and settle_index_let parameters with the paginators
current page offset, however this was incorrect as we can just use
SQL's LIMIT/OFFSET to paginate. This commit fixes this issue and adds an
optional parameter to the constructor of the invoice SQL store to set
page size. This is useful when testing as we can now cover pagination
correctly with our existing unit tests.
2024-07-04 17:32:11 +02:00
..
errors.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
interface.go invoices+channeldb: add InvoiceUpdater interface and the KV impl 2024-02-19 20:47:24 +01:00
invoice_expiry_watcher.go remove repetitive words 2024-03-07 14:05:47 +08:00
invoice_expiry_watcher_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoiceregistry.go multi: make tlv onion compulsory 2024-01-11 09:43:31 -08:00
invoiceregistry_test.go invoices: ensure synchronous access to NewTestSqliteDB 2024-05-06 19:10:44 +02:00
invoices.go invoices: add UpdateType to InvoiceUpdateDesc 2023-03-13 13:11:06 -07:00
invoices_test.go invoices: fix and correctly cover paginated queries 2024-07-04 17:32:11 +02:00
log.go invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00
mock.go invoices: remove the now unused ScanInvoices method 2023-10-18 16:15:58 +02:00
resolution.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
resolution_result.go trivial typo[skip ci] 2022-07-01 11:21:46 +02:00
setup_test.go invoices: move InvoiceDB tests unrelated to kvdb to invoices package 2024-02-19 20:47:24 +01:00
sql_store.go invoices: fix and correctly cover paginated queries 2024-07-04 17:32:11 +02:00
test_utils.go multi: update linter, fix new issues 2023-06-13 11:58:33 +02:00
test_utils_test.go invoices: run InvoiceStore and InvoiceRegistry tests on PostgreSQL too 2024-03-01 10:08:09 +01:00
update.go invoices: allow overpayment in mpps 2023-06-29 17:13:36 -06:00
update_invoice.go invoices: fix linter issues after the move 2024-02-19 20:47:24 +01:00
update_invoice_test.go invoices: move UpdateInvoice implementation to the invoices package 2024-02-19 20:47:24 +01:00