diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index 7a86ec68857..e3641f1b290 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -1127,6 +1127,7 @@ impl ChannelMonitor { payment_hash, payment_preimage, broadcaster, fee_estimator, logger) } + // 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, @@ -1138,6 +1139,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. pub fn force_broadcast_latest_holder_commitment_txn_unsafe( &self, broadcaster: &B,