-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
With the listinvoices RPC, when we have a large database, we don't have a way to determine the total number of invoices for a large database because we can't fetch a copy of all invoices because of #9716 . Also, it's likely that #9709 might apply to listinvoices as well after #9716 is fixed.
listpayments has a --count_total_payments option which is a workaround to #9709 for counting the total number of payments.
Even if the above issues were fixed for listinvoices, the client isn't going to want to receive and process through a huge amount of data to just figure out how many invoices there are. We need an analogous --count_total_invoices option for listinvoices. Also, when adding this feature, don't introduce the same kind of problem we see here #8530 for listpayments.