Skip to content

[feature]: add a flag --count_total_invoices to listinvoices #9717

@ZZiigguurraatt

Description

@ZZiigguurraatt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovements to existing features / behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions