From: Gursharan Singh <3442979+G8XSU@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:41:18 +0000 (-0700) Subject: Add update_persisted_channel doc to indicate rare case for None update X-Git-Tag: v0.0.117-rc1~2^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=976acd8af03566427e70f7764bd5bdfdc6f08bd6;p=rust-lightning Add update_persisted_channel doc to indicate rare case for None update --- diff --git a/lightning/src/chain/chainmonitor.rs b/lightning/src/chain/chainmonitor.rs index 086a848af..d70ebd40d 100644 --- a/lightning/src/chain/chainmonitor.rs +++ b/lightning/src/chain/chainmonitor.rs @@ -164,8 +164,8 @@ pub trait Persist { /// updated monitor itself to disk/backups. See the [`Persist`] trait documentation for more /// details. /// - /// During blockchain synchronization operations, this may be called with no - /// [`ChannelMonitorUpdate`], in which case the full [`ChannelMonitor`] needs to be persisted. + /// During blockchain synchronization operations, and in some rare cases, this may be called with + /// no [`ChannelMonitorUpdate`], in which case the full [`ChannelMonitor`] needs to be persisted. /// Note that after the full [`ChannelMonitor`] is persisted any previous /// [`ChannelMonitorUpdate`]s which were persisted should be discarded - they can no longer be /// applied to the persisted [`ChannelMonitor`] as they were already applied.