Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the HTLCs that settled a payment. #2478

Merged
merged 1 commit into from
Aug 21, 2023

Commits on Aug 21, 2023

  1. Provide the HTLCs that settled a payment.

    Creates a new `events::ClaimedHTLC` struct that contains the relevant
    information about a claimed HTLC; e.g., the channel it arrived on, its ID, the
    amount of the HTLC, the overall amount of the payment, etc. Adds appropriate
    serialization support.
    
    Adds a `Vec<events::ClaimedHTLC>` to the `ClaimingPayment`
    structure. Populates this when creating the struct by converting the
    `payment.htlcs` (which are `ClaimingHTLC` structs) into `event::ClaimedHTLC`
    structs. This is a straightforward transformation.
    
    Adds a `Vec<events::ClaimedHTLC>` to the `events::Event::PaymentClaimed`
    enum. This is populated directly from the `ClaimingPayment`'s `htlcs` vec.
    
    Fixes lightningdevkit#2477.
    waterson committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    2e562a2 View commit details
    Browse the repository at this point in the history