@@ -3564,7 +3564,7 @@ impl<Signer: Sign> Channel<Signer> {
3564
3564
/// If our balance is too low to cover the cost of the next commitment transaction at the
3565
3565
/// new feerate, the update is cancelled.
3566
3566
///
3567
- /// You MUST call send_commitment prior to any other calls on this Channel if
3567
+ /// You MUST call `send_commitment_no_state_update` prior to any other calls on this Channel if
3568
3568
/// `force_holding_cell` is false.
3569
3569
fn send_update_fee < L : Deref > ( & mut self , feerate_per_kw : u32 , mut force_holding_cell : bool , logger : & L ) -> Option < msgs:: UpdateFee > where L :: Target : Logger {
3570
3570
if !self . is_outbound ( ) {
@@ -5518,8 +5518,8 @@ impl<Signer: Sign> Channel<Signer> {
5518
5518
/// we may not yet have sent the previous commitment update messages and will need to
5519
5519
/// regenerate them.
5520
5520
///
5521
- /// You MUST call send_commitment prior to calling any other methods on this Channel if
5522
- /// `force_holding_cell` is false.
5521
+ /// You MUST call `send_commitment_no_state_update` prior to calling any other methods on this
5522
+ /// Channel if `force_holding_cell` is false.
5523
5523
///
5524
5524
/// If an Err is returned, it's a ChannelError::Ignore!
5525
5525
fn send_htlc < L : Deref > ( & mut self , amount_msat : u64 , payment_hash : PaymentHash , cltv_expiry : u32 , source : HTLCSource ,
@@ -5779,8 +5779,9 @@ impl<Signer: Sign> Channel<Signer> {
5779
5779
5780
5780
/// Adds a pending outbound HTLC to this channel, and creates a signed commitment transaction
5781
5781
/// to send to the remote peer in one go.
5782
- /// Shorthand for calling send_htlc() followed by send_commitment(), see docs on those for
5783
- /// more info.
5782
+ ///
5783
+ /// Shorthand for calling send_htlc() followed by a commitment update, see docs on `send_htlc`
5784
+ /// and `send_commitment_no_state_update` for more info.
5784
5785
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 {
5785
5786
match self . send_htlc ( amount_msat, payment_hash, cltv_expiry, source, onion_routing_packet, false , logger) ? {
5786
5787
Some ( update_add_htlc) => {
0 commit comments