Skip to content

Persistent MonitorEvents#4491

Open
valentinewallace wants to merge 20 commits intolightningdevkit:mainfrom
valentinewallace:2026-03-persistent-mon-evs
Open

Persistent MonitorEvents#4491
valentinewallace wants to merge 20 commits intolightningdevkit:mainfrom
valentinewallace:2026-03-persistent-mon-evs

Conversation

@valentinewallace
Copy link
Contributor

@valentinewallace valentinewallace commented Mar 17, 2026

As part of #4482, we're looking into changing our architecture -- currently, the Channel{Manager} is responsible for managing the resolution of off-chain HTLCs, and the ChannelMonitor is responsible for them once they're on-chain. See the issue description but there's complexity that results from this design.

Quoting the issue, "Instead, we want to do all resolution in ChannelMonitors (in response to ChannelMonitorUpdates) and pass them back to ChannelManager in the form of MonitorEvents (similar to how HTLCs are resolved after channels are closed). In order to have reliable resolution, we'll need to keep MonitorEvents around in the ChannelMonitor until the ChannelManager has finished processing them - adding a new MonitorEvent resolution path through a new method (rather than via ChannelMonitorUpdates)."

Here we don't add any new MonitorEvents but add support for making the ones we do have persistent across restarts until they are explicitly ack'd, via a new chain::Watch API.

  • update commit messages

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

weekly goal Someone wants to land this this week

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants