From 481e221187550ec5db62a9c97ecb166162acd244 Mon Sep 17 00:00:00 2001 From: Devrandom Date: Wed, 15 Jan 2020 13:59:23 -0800 Subject: [PATCH] increase visibility for external integration tests --- lightning/src/ln/features.rs | 8 -------- lightning/src/ln/mod.rs | 6 +----- lightning/src/ln/msgs.rs | 5 +++-- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index 816bf1dff..c33407487 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -67,14 +67,6 @@ pub type ChannelFeatures = Features; impl InitFeatures { /// Create a Features with the features we support - #[cfg(not(feature = "fuzztarget"))] - pub(crate) fn supported() -> InitFeatures { - InitFeatures { - flags: vec![2 | 1 << 5], - mark: PhantomData, - } - } - #[cfg(feature = "fuzztarget")] pub fn supported() -> InitFeatures { InitFeatures { flags: vec![2 | 1 << 5], diff --git a/lightning/src/ln/mod.rs b/lightning/src/ln/mod.rs index 369d27893..93043111e 100644 --- a/lightning/src/ln/mod.rs +++ b/lightning/src/ln/mod.rs @@ -15,17 +15,13 @@ pub mod msgs; pub mod router; pub mod peer_handler; pub mod chan_utils; +pub mod features; #[cfg(feature = "fuzztarget")] pub mod peer_channel_encryptor; #[cfg(not(feature = "fuzztarget"))] pub(crate) mod peer_channel_encryptor; -#[cfg(feature = "fuzztarget")] -pub mod features; -#[cfg(not(feature = "fuzztarget"))] -pub(crate) mod features; - mod channel; mod onion_utils; diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 70bf19f41..875354251 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -139,9 +139,10 @@ pub struct FundingSigned { /// A funding_locked message to be sent or received from a peer #[derive(Clone, PartialEq)] +#[allow(missing_docs)] pub struct FundingLocked { - pub(crate) channel_id: [u8; 32], - pub(crate) next_per_commitment_point: PublicKey, + pub channel_id: [u8; 32], + pub next_per_commitment_point: PublicKey, } /// A shutdown message to be sent or received from a peer -- 2.39.5