Browse Source

fix(wallet): increase invoice fetch count to 1000

By default, lnd only returns the latest 100 invoices. Ideally we would
implement pagination, but until then here is a quick fix to increase
the max number of invoices returned by lnd to 1000.

Fix #911
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
fc8e74b7b0
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 2
      app/lib/lnd/methods/invoicesController.js

2
app/lib/lnd/methods/invoicesController.js

@ -26,7 +26,7 @@ export function addInvoice(lnd, { memo, value, private: privateInvoice }) {
*/
export function listInvoices(lnd) {
return new Promise((resolve, reject) => {
lnd.listInvoices({}, (err, data) => {
lnd.listInvoices({ num_max_invoices: 1000 }, (err, data) => {
if (err) {
return reject(err)
}

Loading…
Cancel
Save