Skip to content

Commit ceca6f4

Browse files
committed
f drop parameters suffix
1 parent 81dcceb commit ceca6f4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

fuzz/src/router.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use bitcoin::hash_types::BlockHash;
1313

1414
use lightning::chain;
1515
use lightning::chain::transaction::OutPoint;
16-
use lightning::ln::channelmanager::{ChannelDetails, ChannelCounterpartyParameters};
16+
use lightning::ln::channelmanager::{ChannelDetails, ChannelCounterparty};
1717
use lightning::ln::features::InitFeatures;
1818
use lightning::ln::msgs;
1919
use lightning::routing::router::{get_route, RouteHint, RouteHintHop};
@@ -207,7 +207,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
207207
let rnid = node_pks.iter().skip(slice_to_be16(get_slice!(2))as usize % node_pks.len()).next().unwrap();
208208
first_hops_vec.push(ChannelDetails {
209209
channel_id: [0; 32],
210-
counterparty: ChannelCounterpartyParameters {
210+
counterparty: ChannelCounterparty {
211211
node_id: *rnid,
212212
features: InitFeatures::known(),
213213
unspendable_punishment_reserve: 0,

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ const CHECK_CLTV_EXPIRY_SANITY_2: u32 = MIN_CLTV_EXPIRY_DELTA as u32 - LATENCY_G
605605
/// Channel parameters which apply to our counterparty. These are split out from [`ChannelDetails`]
606606
/// to better separate parameters.
607607
#[derive(Clone, Debug, PartialEq)]
608-
pub struct ChannelCounterpartyParameters {
608+
pub struct ChannelCounterparty {
609609
/// The node_id of our counterparty
610610
pub node_id: PublicKey,
611611
/// The Features the channel counterparty provided upon last connection.
@@ -634,7 +634,7 @@ pub struct ChannelDetails {
634634
/// lifetime of the channel.
635635
pub channel_id: [u8; 32],
636636
/// Parameters which apply to our counterparty. See individual fields for more information.
637-
pub counterparty: ChannelCounterpartyParameters,
637+
pub counterparty: ChannelCounterparty,
638638
/// The Channel's funding transaction output, if we've negotiated the funding transaction with
639639
/// our counterparty already.
640640
///
@@ -1178,7 +1178,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
11781178
channel.get_holder_counterparty_selected_channel_reserve_satoshis();
11791179
res.push(ChannelDetails {
11801180
channel_id: (*channel_id).clone(),
1181-
counterparty: ChannelCounterpartyParameters {
1181+
counterparty: ChannelCounterparty {
11821182
node_id: channel.get_counterparty_node_id(),
11831183
features: InitFeatures::empty(),
11841184
unspendable_punishment_reserve: to_remote_reserve_satoshis,

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ mod tests {
12041204
features: InitFeatures, outbound_capacity_msat: u64) -> channelmanager::ChannelDetails {
12051205
channelmanager::ChannelDetails {
12061206
channel_id: [0; 32],
1207-
counterparty: channelmanager::ChannelCounterpartyParameters {
1207+
counterparty: channelmanager::ChannelCounterparty {
12081208
features,
12091209
node_id,
12101210
unspendable_punishment_reserve: 0,

0 commit comments

Comments
 (0)