Skip to content

Commit 214c222

Browse files
committed
Add documentation on public method
1 parent 2971adc commit 214c222

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
11871187
payment_hash, payment_preimage, broadcaster, fee_estimator, logger)
11881188
}
11891189

1190+
// Broadcasts the latest commitment transaction only if it's safe to do so.
11901191
pub(crate) fn maybe_broadcast_latest_holder_commitment_txn<B: Deref, L: Deref>(
11911192
&self,
11921193
broadcaster: &B,
@@ -1198,6 +1199,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
11981199
self.inner.lock().unwrap().maybe_broadcast_latest_holder_commitment_txn(broadcaster, logger)
11991200
}
12001201

1202+
// Broadcasts the latest commitment transaction, even if we can't ensure it's safe to do so
1203+
// due to missing information.
12011204
pub fn force_broadcast_latest_holder_commitment_txn_unsafe<B: Deref, L: Deref>(
12021205
&self,
12031206
broadcaster: &B,

0 commit comments

Comments
 (0)