@@ -2926,11 +2926,13 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
2926
2926
/// or [`cltv_expiry_delta`]) has a [`BroadcastChannelUpdate`] event message generated
2927
2927
/// containing the new [`ChannelUpdate`] message which should be broadcast to the network.
2928
2928
///
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 .
2931
2931
///
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.
2934
2936
///
2935
2937
/// [`forwarding_fee_proportional_millionths`]: ChannelConfig::forwarding_fee_proportional_millionths
2936
2938
/// [`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
2975
2977
channel_state. pending_msg_events . push ( events:: MessageSendEvent :: BroadcastChannelUpdate { msg } ) ;
2976
2978
} else if let Ok ( msg) = self . get_channel_update_for_unicast ( channel) {
2977
2979
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,
2980
2982
} ) ;
2981
2983
}
2982
2984
}
0 commit comments