diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index 756ccbe638e..89f9d2aa359 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -1187,7 +1187,7 @@ impl ChannelMonitor { payment_hash, payment_preimage, broadcaster, fee_estimator, logger) } - // Broadcasts the latest commitment transaction only if it's safe to do so. + /// Broadcasts the latest commitment transaction only if it's safe to do so. pub(crate) fn maybe_broadcast_latest_holder_commitment_txn( &self, broadcaster: &B, @@ -1199,8 +1199,8 @@ impl ChannelMonitor { self.inner.lock().unwrap().maybe_broadcast_latest_holder_commitment_txn(broadcaster, logger) } - // Broadcasts the latest commitment transaction, even if we can't ensure it's safe to do so - // due to missing information. + /// Broadcasts the latest commitment transaction, even if we can't ensure it's safe to do so + /// due to missing information. pub fn force_broadcast_latest_holder_commitment_txn_unsafe( &self, broadcaster: &B, @@ -2169,7 +2169,7 @@ impl ChannelMonitorImpl { } } - // Broadcasts the latest commitment transaction only if it's safe to do so. + /// Broadcasts the latest commitment transaction only if it's safe to do so. pub fn maybe_broadcast_latest_holder_commitment_txn(&mut self, broadcaster: &B, logger: &L) where B::Target: BroadcasterInterface, L::Target: Logger, @@ -2185,8 +2185,8 @@ impl ChannelMonitorImpl { } } - // Broadcasts the latest commitment transaction, even if we can't ensure it's safe to do so - // due to missing information. + /// Broadcasts the latest commitment transaction, even if we can't ensure it's safe to do so + /// due to missing information. pub fn force_broadcast_latest_holder_commitment_txn_unsafe(&mut self, broadcaster: &B, logger: &L) where B::Target: BroadcasterInterface, L::Target: Logger,