Skip to content

[bug]: missing settled invoices (gap in settle_index) #7071

Open
@C-Otto

Description

@C-Otto

Background

The "settle_index" is supposed to be monotonically increasing:

The "settle" index of this invoice. Each newly settled invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all settled invoices with an settle_index greater than this one. Note: Output only, don't specify for creating an invoice.

However, my node does not have any invoice with settle_index 30278 nor 50310, whereas all other invoices exist according to
lncli listinvoices --index_offset 0 --paginate-forwards --max_invoices 3000000 | jq -r .invoices[].settle_index.

The settled invoices following the gaps were settled on 2022-02-14 02:59:10+01 and 2022-06-05 22:10:46+02.

Your environment

  • lnd v0.15.3-beta (with a few unrelated patches)
  • Linux server 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
  • bitcoind v23

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnintended code behaviourdatabaseRelated to the database/storage of LNDinvoices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions