Skip to content

Commit 347c49e

Browse files
committed
f missing user_id renames
1 parent 539bb6d commit 347c49e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ pub struct ChannelDetails {
776776
///
777777
/// [`outbound_capacity_msat`]: ChannelDetails::outbound_capacity_msat
778778
pub unspendable_punishment_reserve: Option<u64>,
779-
/// The user_id passed in to create_channel, or 0 if the channel was inbound.
780-
pub user_id: u64,
779+
/// The `user_channel_id` passed in to create_channel, or 0 if the channel was inbound.
780+
pub user_channel_id: u64,
781781
/// The available outbound capacity for sending HTLCs to the remote peer. This does not include
782782
/// any pending HTLCs which are not yet fully resolved (and, thus, who's balance is not
783783
/// available for inclusion in new outbound HTLCs). This further does not include any pending
@@ -1361,7 +1361,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
13611361
unspendable_punishment_reserve: to_self_reserve_satoshis,
13621362
inbound_capacity_msat,
13631363
outbound_capacity_msat,
1364-
user_id: channel.get_user_id(),
1364+
user_channel_id: channel.get_user_id(),
13651365
confirmations_required: channel.minimum_depth(),
13661366
force_close_spend_delay: channel.get_counterparty_selected_contest_delay(),
13671367
is_outbound: channel.is_outbound(),

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ mod tests {
13271327
funding_txo: Some(OutPoint { txid: bitcoin::Txid::from_slice(&[0; 32]).unwrap(), index: 0 }),
13281328
short_channel_id,
13291329
channel_value_satoshis: 0,
1330-
user_id: 0,
1330+
user_channel_id: 0,
13311331
outbound_capacity_msat,
13321332
inbound_capacity_msat: 42,
13331333
unspendable_punishment_reserve: None,

lightning/src/util/events.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ pub enum Event {
146146
channel_value_satoshis: u64,
147147
/// The script which should be used in the transaction output.
148148
output_script: Script,
149-
/// The `user_id` value passed in to [`ChannelManager::create_channel`], or 0 for an
150-
/// inbound channel.
149+
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or 0 for
150+
/// an inbound channel.
151151
///
152152
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
153153
user_channel_id: u64,
@@ -265,8 +265,8 @@ pub enum Event {
265265
/// The channel_id of the channel which has been closed. Note that on-chain transactions
266266
/// resolving the channel are likely still awaiting confirmation.
267267
channel_id: [u8; 32],
268-
/// The `user_id` value passed in to [`ChannelManager::create_channel`], or 0 for an
269-
/// inbound channel. This will always be zero for objects serialized with LDK versions
268+
/// The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or 0 for
269+
/// an inbound channel. This will always be zero for objects serialized with LDK versions
270270
/// prior to 0.0.102.
271271
///
272272
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel

0 commit comments

Comments
 (0)