Skip to content

Commit 81dcceb

Browse files
committed
f swap ChannelCounterparty field order
1 parent a44b282 commit 81dcceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,12 @@ const CHECK_CLTV_EXPIRY_SANITY_2: u32 = MIN_CLTV_EXPIRY_DELTA as u32 - LATENCY_G
606606
/// to better separate parameters.
607607
#[derive(Clone, Debug, PartialEq)]
608608
pub struct ChannelCounterpartyParameters {
609+
/// The node_id of our counterparty
610+
pub node_id: PublicKey,
609611
/// The Features the channel counterparty provided upon last connection.
610612
/// Useful for routing as it is the most up-to-date copy of the counterparty's features and
611613
/// many routing-relevant features are present in the init context.
612614
pub features: InitFeatures,
613-
/// The node_id of our counterparty
614-
pub node_id: PublicKey,
615615
/// The value, in satoshis, that must always be held in the channel for our counterparty. This
616616
/// value ensures that if our counterparty broadcasts a revoked state, we can punish them by
617617
/// claiming at least this value on chain.

0 commit comments

Comments
 (0)