Skip to content

ChannelSigner::sign_holder_commitment_and_htlcs causes panic when returning Err #2520

Closed
@waterson

Description

@waterson

There are currently several expects in OnChainTxHandler (e.g., get_fully_signed_holder_tx) that make it such that any implementation of ChannelSigner::sign_holder_commitment_and_htlcs that returns Err will panic LDK.

I am wondering if it is possible to rethink how this works (e.g., caching the signatures when we advance the channel state?) so that the existing callers in OnChainTxHandler might be able to access the commitment and HTLC signatures without querying the signer.

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