Skip to content

Commit 0eac3ff

Browse files
committed
fixup! Expose API to update a channel's ChannelConfig
1 parent 1ebb04f commit 0eac3ff

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,11 +2926,13 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
29262926
/// or [`cltv_expiry_delta`]) has a [`BroadcastChannelUpdate`] event message generated
29272927
/// containing the new [`ChannelUpdate`] message which should be broadcast to the network.
29282928
///
2929-
/// Returns [`ChannelUnavailable`] when a channel is not found. In this case, none of the
2930-
/// updates should be considered applied.
2929+
/// Returns [`ChannelUnavailable`] when a channel is not found or an incorrect
2930+
/// `counterparty_node_id` is provided.
29312931
///
2932-
/// Returns [`APIMisuseError`] when an incorrect `counterparty_node_id` is provided or a
2933-
/// [`cltv_expiry_delta`] update is to be applied with a value below [`MIN_CLTV_EXPIRY_DELTA`].
2932+
/// Returns [`APIMisuseError`] when a [`cltv_expiry_delta`] update is to be applied with a value
2933+
/// below [`MIN_CLTV_EXPIRY_DELTA`].
2934+
///
2935+
/// If an error is returned, none of the updates should be considered applied.
29342936
///
29352937
/// [`forwarding_fee_proportional_millionths`]: ChannelConfig::forwarding_fee_proportional_millionths
29362938
/// [`forwarding_fee_base_msat`]: ChannelConfig::forwarding_fee_base_msat
@@ -2975,8 +2977,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
29752977
channel_state.pending_msg_events.push(events::MessageSendEvent::BroadcastChannelUpdate { msg });
29762978
} else if let Ok(msg) = self.get_channel_update_for_unicast(channel) {
29772979
channel_state.pending_msg_events.push(events::MessageSendEvent::SendChannelUpdate {
2978-
node_id: channel.get_counterparty_node_id(),
2979-
msg,
2980+
node_id: channel.get_counterparty_node_id(),
2981+
msg,
29802982
});
29812983
}
29822984
}

0 commit comments

Comments
 (0)