Skip to content

Commit 4b41600

Browse files
committed
make FundingLocked fields public
1 parent 9ec33ba commit 4b41600

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lightning/src/ln/msgs.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,10 @@ pub struct FundingSigned {
139139

140140
/// A funding_locked message to be sent or received from a peer
141141
#[derive(Clone, PartialEq)]
142+
#[allow(missing_docs)]
142143
pub struct FundingLocked {
143-
pub(crate) channel_id: [u8; 32],
144-
pub(crate) next_per_commitment_point: PublicKey,
145-
}
146-
147-
impl FundingLocked {
148-
/// The channel ID
149-
pub fn channel_id(&self) -> [u8; 32] {
150-
self.channel_id
151-
}
144+
pub channel_id: [u8; 32],
145+
pub next_per_commitment_point: PublicKey,
152146
}
153147

154148
/// A shutdown message to be sent or received from a peer

0 commit comments

Comments
 (0)