Skip to content

Force-close channels that our peer claims are late without proving it - #3360

Merged
pm47 merged 4 commits into
masterfrom
force-close-outdated
Aug 21, 2026
Merged

Force-close channels that our peer claims are late without proving it#3360
pm47 merged 4 commits into
masterfrom
force-close-outdated

Conversation

@pm47

@pm47 pm47 commented Aug 21, 2026

Copy link
Copy Markdown
Member

When our peer claims, in their channel_reestablish message, that we're late but don't prove it, we force-close the channel instead of transitioning to WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT.

There is a special case where we are late but safe because they don't have our revocation secret: we use the commitment point from their channel_reestablish message to spend their commit tx if they publish it, as we would in WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT.

Supersedes #3358. Credits @sstone.

@t-bast t-bast left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of nits, feel free to ignore

Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/ChannelData.scala Outdated
@pm47
pm47 requested a review from t-bast August 21, 2026 12:17
t-bast
t-bast previously approved these changes Aug 21, 2026
sstone and others added 4 commits August 21, 2026 14:27
…#100)

When our peer claims, in their channel_reestablish message, that we're late but don't prove it, we force-close the channel instead of transitioning to WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT.

There is a special case where we are late but safe because they don't have our revocation secret: we use the commitment point from their `channel_resstablish` message to spend their commit tx if they publish it, as we would in WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT.
@pm47

pm47 commented Aug 21, 2026

Copy link
Copy Markdown
Member Author

Rebased to fix build failure.

@pm47
pm47 requested a review from t-bast August 21, 2026 12:36
@pm47
pm47 merged commit 5b765e0 into master Aug 21, 2026
1 check passed
@pm47
pm47 deleted the force-close-outdated branch August 21, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants