Skip to content

invoices: implement statelss invoice functinoality  #6413

@Roasbeef

Description

@Roasbeef

After the merge of #5810, we start to set the new metadata field in invoices, but don't yet do anything with them on the sender side. One thing this allows is for the reactor of an invoice to only actually commit state to the invoice once it's been fully paid, a.k.a "stateless" invoices.

In order to actually make this feature useful, we should draft up an initial version of stateless invoice interpretation within lnd itself. At a glance, we can likely re-use most of the keysend logic, which itself inserts an invoice into the DB just-in-time when the HTLC is received.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to haveenhancementImprovements to existing features / behaviourintermediateIssues suitable for developers moderately familiar with the codebase and LNinvoicespaymentsRelated to invoices/payments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions