Skip to content

Commit d458fa8

Browse files
committed
f Docs
1 parent a2616a9 commit d458fa8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lightning/src/ln/channelmanager.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,8 @@ pub struct ChannelDetails {
10831083
///
10841084
/// [`outbound_capacity_msat`]: ChannelDetails::outbound_capacity_msat
10851085
pub unspendable_punishment_reserve: Option<u64>,
1086-
/// The `user_channel_id` passed in to create_channel, or 0 if the channel was inbound.
1086+
/// The `user_channel_id` passed in to create_channel, or a random value if the channel was
1087+
/// inbound.
10871088
pub user_channel_id: u128,
10881089
/// Our total balance. This is the amount we would get if we close the channel.
10891090
/// This value is not exact. Due to various in-flight changes and feerate changes, exactly this

lightning/src/util/events.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ pub enum Event {
318318
channel_value_satoshis: u64,
319319
/// The script which should be used in the transaction output.
320320
output_script: Script,
321-
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or 0 for
322-
/// an inbound channel.
321+
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or a
322+
/// random value for an inbound channel.
323323
///
324324
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
325325
user_channel_id: u128,
@@ -612,7 +612,7 @@ pub enum Event {
612612
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
613613
/// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
614614
/// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
615-
/// `user_channel_id` will be 0 for an inbound channel.
615+
/// `user_channel_id` will be randomized for an inbound channel.
616616
///
617617
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
618618
/// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
@@ -632,7 +632,7 @@ pub enum Event {
632632
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
633633
/// channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
634634
/// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
635-
/// `user_channel_id` will be 0 for an inbound channel.
635+
/// `user_channel_id` will be randomized for an inbound channel.
636636
/// This will always be zero for objects serialized with LDK versions prior to 0.0.102.
637637
///
638638
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel

0 commit comments

Comments
 (0)