From: Devrandom Date: Wed, 15 Jan 2020 21:59:23 +0000 (-0800) Subject: increase visibility for external integration tests X-Git-Tag: v0.0.12~157^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=481e221187550ec5db62a9c97ecb166162acd244;p=rust-lightning increase visibility for external integration tests --- diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index 816bf1df..c3340748 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 369d2789..93043111 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 70bf19f4..87535425 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