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

Store state when sending commitment_signed #13

Merged
merged 1 commit into from
Apr 16, 2023

Commits on Apr 13, 2023

  1. Store state when sending commitment_signed

    If we only store state when sending `tx_signatures`, there are cases where
    we cannot reconcile states if a disconnection occurs during the signing
    steps: one side will have sent `tx_signatures` and thus must wait for the
    transaction to be spent or double-spent, while the other side has already
    forgotten that channel because they haven't sent `tx_signatures`.
    
    This is fixed by storing state when sending `commitment_signed`, and
    adding a `next_funding_txid` field to `channel_reestablish` to ask our
    peer to retransmit signatures that we haven't received.
    t-bast committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    248caeb View commit details
    Browse the repository at this point in the history