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 Jul 22, 2022
1 parent 5c355bf commit 2d69c47
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 @@ -1127,6 +1127,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 @@ -1138,6 +1139,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 2d69c47

Please sign in to comment.