Skip to content

Stale ChannelManager causes channel force-closures #4286

@valentinewallace

Description

@valentinewallace

LDK currently has two sources of truth for channel data, in particular what commitment number a channel is on: the ChannelManager and the per-channel ChannelMonitors. If, on startup, a monitor is ahead of the corresponding channel data present in the manager, that channel will force-close. We've seen this happen in the wild.

We'd like to fix this issue by reducing reliance on regular persistence of the ChannelManager, and instead reconstructing (at least parts of) it using ChannelMonitor data on startup.

Metadata

Metadata

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