[feature]: add a flag --count_total_invoices
to listinvoices
#9717
Labels
enhancement
Improvements to existing features / behaviour
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 tolistinvoices
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 forlistinvoices
. Also, when adding this feature, don't introduce the same kind of problem we see here #8530 forlistpayments
.The text was updated successfully, but these errors were encountered: