Skip to content

Commit 782c576

Browse files
committed
f - fill docs
1 parent 3d93250 commit 782c576

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,10 +1454,16 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
14541454
self.inner.lock().unwrap().counterparty_commitment_txs_from_update(update)
14551455
}
14561456

1457-
/// Wrapper around [`crate::sign::EcdsaChannelSigner::sign_justice_revoked_output`] to make
1457+
/// Wrapper around [`EcdsaChannelSigner::sign_justice_revoked_output`] to make
14581458
/// signing the justice transaction easier for implementors of
14591459
/// [`chain::chainmonitor::Persist`]. On success this method returns a fully signed
14601460
/// transaction that is ready to be broadcasted.
1461+
///
1462+
/// This method will only succeed if this monitor has received the revocation secret for the
1463+
/// provided commitment number.
1464+
///
1465+
/// [`EcdsaChannelSigner::sign_justice_revoked_output`]: crate::sign::EcdsaChannelSigner::sign_justice_revoked_output
1466+
/// [`Persist`]: crate::chain::chainmonitor::Persist
14611467
pub fn sign_justice_tx(&self, justice_tx: Transaction, input_idx: usize, value: u64, commitment_number: u64) -> Result<Transaction, ()> {
14621468
self.inner.lock().unwrap().sign_justice_tx(justice_tx, input_idx, value, commitment_number)
14631469
}

0 commit comments

Comments
 (0)