Skip to content

Commit f7d2a9e

Browse files
committed
f send docs
1 parent 8b7d455 commit f7d2a9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5517,10 +5517,10 @@ impl<Signer: Sign> Channel<Signer> {
55175517
/// we may not yet have sent the previous commitment update messages and will need to
55185518
/// regenerate them.
55195519
///
5520-
/// You MUST call `send_commitment_no_state_update` prior to calling any other methods on this
5521-
/// Channel if `force_holding_cell` is false.
5520+
/// You MUST call [`Self::send_commitment_no_state_update`] prior to calling any other methods
5521+
/// on this [`Channel]` if `force_holding_cell` is false.
55225522
///
5523-
/// If an Err is returned, it's a ChannelError::Ignore!
5523+
/// `Err`s will only be [`ChannelError::Ignore`].
55245524
fn send_htlc<L: Deref>(&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32, source: HTLCSource,
55255525
onion_routing_packet: msgs::OnionPacket, mut force_holding_cell: bool, logger: &L)
55265526
-> Result<Option<msgs::UpdateAddHTLC>, ChannelError> where L::Target: Logger {
@@ -5779,8 +5779,8 @@ impl<Signer: Sign> Channel<Signer> {
57795779
/// Adds a pending outbound HTLC to this channel, and creates a signed commitment transaction
57805780
/// to send to the remote peer in one go.
57815781
///
5782-
/// Shorthand for calling send_htlc() followed by a commitment update, see docs on `send_htlc`
5783-
/// and `send_commitment_no_state_update` for more info.
5782+
/// Shorthand for calling [`Self::send_htlc`] followed by a commitment update, see docs on
5783+
/// [`Self::send_htlc`] and [`Self::send_commitment_no_state_update`] for more info.
57845784
pub fn send_htlc_and_commit<L: Deref>(&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32, source: HTLCSource, onion_routing_packet: msgs::OnionPacket, logger: &L) -> Result<Option<(msgs::UpdateAddHTLC, msgs::CommitmentSigned, ChannelMonitorUpdate)>, ChannelError> where L::Target: Logger {
57855785
match self.send_htlc(amount_msat, payment_hash, cltv_expiry, source, onion_routing_packet, false, logger)? {
57865786
Some(update_add_htlc) => {

0 commit comments

Comments
 (0)