Merge pull request #448 from lightning-signer/visibility-for-test
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Thu, 16 Jan 2020 23:54:09 +0000 (23:54 +0000)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2020 23:54:09 +0000 (23:54 +0000)
Increase visibility for external integration tests

lightning/src/ln/features.rs
lightning/src/ln/mod.rs
lightning/src/ln/msgs.rs

index 816bf1dff1465d578d4e0dae7ae0b962a62a7782..c334074871eb486a924da2eabdde30865dc55e22 100644 (file)
@@ -67,14 +67,6 @@ pub type ChannelFeatures = Features<sealed::ChannelContext>;
 
 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],
index 369d2789302d2624f2a4f3bd84a6684a1705050a..93043111eef27c92d1939bd13227a253f4f20dc8 100644 (file)
@@ -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;
 
index 70bf19f41e0b337dda57b9ca94c02b3b2f8005b8..875354251c5022c760d2ebe301a17478d90e3ea0 100644 (file)
@@ -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