X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fchain%2Fchainmonitor.rs;h=4986e054a35157567d8ed373a32b0bc284a8a2b9;hb=971f7a7e42652d5697d761df6650ae9e6dcaa5db;hp=4e349799d1c201a834a686c34c69e96dcb5c7fc5;hpb=6e115db22b1e1f89f62c958af1300ec0a47ef27a;p=rust-lightning diff --git a/lightning/src/chain/chainmonitor.rs b/lightning/src/chain/chainmonitor.rs index 4e349799..4986e054 100644 --- a/lightning/src/chain/chainmonitor.rs +++ b/lightning/src/chain/chainmonitor.rs @@ -82,8 +82,8 @@ impl MonitorUpdateId { /// * If persistence (including any relevant `fsync()` calls) happens immediately, the /// implementation should return [`ChannelMonitorUpdateStatus::Completed`], indicating normal /// channel operation should continue. -/// * If persistence happens asynchronously, implementations should first ensure the -/// [`ChannelMonitor`] or [`ChannelMonitorUpdate`] are written durably to disk, and then return +/// +/// * If persistence happens asynchronously, implementations can return /// [`ChannelMonitorUpdateStatus::InProgress`] while the update continues in the background. /// Once the update completes, [`ChainMonitor::channel_monitor_updated`] should be called with /// the corresponding [`MonitorUpdateId`].