Skip to content

Support rejecting duplicate offer payments #472

Open

Description

@TheBlueMatt

When using BOLT 12 to receive payments which are "single-use" (eg generating a unique offer for a merchant who wants to receive payment for an order once) ldk-node should support looking up the OfferId from the PaymentClaimable event and rejecting duplicate payments for an offer marked single-use, just like we can for BOLT 11 payments which are redundant.

Activity

  1. tnull commented on Feb 14, 2025

    @tnull
    Collaborator

    To do this properly (read: without having to iterate through all payments in the store), we probably want to wait until after #425.

  2. TheBlueMatt commented on Feb 14, 2025

    @TheBlueMatt
    ContributorAuthor

    I don't think there's a particular rush for this in the slightest. Anyone doing single-use invoices for quite a while is going to be using BOLT 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions