Skip to content

Commit 149464f

Browse files
committed
f rm'd send_commitment
1 parent 940aab8 commit 149464f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lightning/src/ln/channel.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -3562,7 +3562,7 @@ impl<Signer: Sign> Channel<Signer> {
35623562
/// If our balance is too low to cover the cost of the next commitment transaction at the
35633563
/// new feerate, the update is cancelled.
35643564
///
3565-
/// You MUST call send_commitment prior to any other calls on this Channel if
3565+
/// You MUST call `send_commitment_no_state_update` prior to any other calls on this Channel if
35663566
/// `force_holding_cell` is false.
35673567
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 {
35683568
if !self.is_outbound() {
@@ -5506,8 +5506,8 @@ impl<Signer: Sign> Channel<Signer> {
55065506
/// we may not yet have sent the previous commitment update messages and will need to
55075507
/// regenerate them.
55085508
///
5509-
/// You MUST call send_commitment prior to calling any other methods on this Channel if
5510-
/// `force_holding_cell` is false.
5509+
/// You MUST call `send_commitment_no_state_update` prior to calling any other methods on this
5510+
/// Channel if `force_holding_cell` is false.
55115511
///
55125512
/// If an Err is returned, it's a ChannelError::Ignore!
55135513
fn send_htlc<L: Deref>(&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32, source: HTLCSource,
@@ -5767,8 +5767,9 @@ impl<Signer: Sign> Channel<Signer> {
57675767

57685768
/// Adds a pending outbound HTLC to this channel, and creates a signed commitment transaction
57695769
/// to send to the remote peer in one go.
5770-
/// Shorthand for calling send_htlc() followed by send_commitment(), see docs on those for
5771-
/// more info.
5770+
///
5771+
/// Shorthand for calling send_htlc() followed by a commitment update, see docs on `send_htlc`
5772+
/// and `send_commitment_no_state_update` for more info.
57725773
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 {
57735774
match self.send_htlc(amount_msat, payment_hash, cltv_expiry, source, onion_routing_packet, false, logger)? {
57745775
Some(update_add_htlc) => {

0 commit comments

Comments
 (0)