From 2d69c47c634d44121ab016ea7ffe473ef66b3c70 Mon Sep 17 00:00:00 2001 From: QPotato Date: Thu, 21 Jul 2022 21:14:54 -0300 Subject: [PATCH] Add documentation on public method --- lightning/src/chain/channelmonitor.rs | 3 +++ 1 file changed, 3 insertions(+) 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,