Skip to content

Commit

Permalink
Add documentation on public method
Browse files Browse the repository at this point in the history
  • Loading branch information
QPotato committed Sep 5, 2022
1 parent 2971adc commit 214c222
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning/src/chain/channelmonitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
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<B: Deref, L: Deref>(
&self,
broadcaster: &B,
Expand All @@ -1198,6 +1199,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
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<B: Deref, L: Deref>(
&self,
broadcaster: &B,
Expand Down

0 comments on commit 214c222

Please sign in to comment.