Skip to content

Test for same-preimage different-direction HTLCs on one channel on-chain #337

Description

@TheBlueMatt

Looking at it, check_spend_remote_transaction may be wrong in the non-revoked case when we have two HTLCs with the same preimage that went across a node in opposite directions. Specifically, it looks like if we have a preimage, we sign an input spending the output, even if that output is an outbound HTLC and our signature will be bogus (potentially making the whole combined-claim transaction invalid).

Activity

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions