Skip to content

Commit 0bc9345

Browse files
committed
Add documentation on public method
1 parent 5c355bf commit 0bc9345

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/channelmonitor.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
11271127
payment_hash, payment_preimage, broadcaster, fee_estimator, logger)
11281128
}
11291129

1130+
// Broadcasts the latest commitment transaction only if it's safe to do so.
11301131
pub(crate) fn maybe_broadcast_latest_holder_commitment_txn<B: Deref, L: Deref>(
11311132
&self,
11321133
broadcaster: &B,
@@ -1138,6 +1139,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
11381139
self.inner.lock().unwrap().maybe_broadcast_latest_holder_commitment_txn(broadcaster, logger)
11391140
}
11401141

1142+
// Broadcasts the latest commitment transaction, even if we can't ensure it's safe to do so
1143+
// due to missing information.
11411144
pub fn force_broadcast_latest_holder_commitment_txn_unsafe<B: Deref, L: Deref>(
11421145
&self,
11431146
broadcaster: &B,

0 commit comments

Comments
 (0)