lightningdevkit / rust-lightning

A highly modular Bitcoin Lightning library written in Rust. It's rust-lightning, not Rusty's Lightning!
Other
1.11k stars 342 forks source link

Don't modify `ChannelMonitor`s during `ChannelManager` load #3112

Open TheBlueMatt opened 3 weeks ago

TheBlueMatt commented 3 weeks ago

We're almost here, and not doing so would allow us to avoid re-persisting ChannelMonitors on startup. The only one left is the preimage replay, which is tricky to remove but should be doable somehow by using ChannelMonitorUpdates in the background queue.