rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Prune `ChannelMonitor`s in `background-processor`

Open ariard opened this issue 7 years ago • 1 comments

Problem is ChannelMonitor become out-of-date due to different reasons (reorg, revocations, close, ...). We should get them out of SimpleManyChannelMonitor when it's accurate.

I'm afraid that we need to keep all previous state until channel close, I mean that's a good component of LN security model..

ariard avatar Oct 21 '18 00:10 ariard

We now have logic to detect when a ChannelMonitor is prunable, so we literally just need to call it from the BP.

TheBlueMatt avatar Oct 01 '25 13:10 TheBlueMatt