Skip to content

bug: closed channel force-closes again on start #2226

Backlog

Description

@ovitrif

Split from #2219, which #2224 closes for the slow node start.

Actual

After a cooperative close, a later node start can force-close the closed channel again and rebroadcast its commitment transaction. In @jvsena42's RC2 logs, a start after his coop close loaded the closed channel's monitor and re-persisted it with a force-close update.

Expected

A closed channel's monitor is not force-closed and re-persisted on start.

Cause so far

LDK 0.2.8 (channelmanager.rs, around lines 17160–17215): on load, a monitor whose channel is missing from the channel manager and whose no_further_updates_allowed() is still false gets a ChannelForceClosed { should_broadcast: true } update. After a coop close that flag turns true only once the monitor has seen the closing transaction confirm and that state was persisted. So the monitor loaded at that start never persisted the close's confirmation: either no block was processed before the node stopped, or the monitor writes after the close failed or were dropped. Not yet narrowed down; synonymdev/ldk-node#147 doesn't change this path.

Activity

  1. added theissue type on Dec 1, 2026
  2. added this to the 3.3.0 milestone on Dec 1, 2026
  3. ovitrif commented on Dec 1, 2026

    @ovitrif
    CollaboratorAuthor

    Milestone 3.3.0: the 3.2.0 release candidate only takes the slow node start fix (#2219), and the cause here is still being narrowed down.

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

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions