increase visibility for external integration tests
authorDevrandom <c1.devrandom@niftybox.net>
Wed, 15 Jan 2020 21:59:23 +0000 (13:59 -0800)
committerDevrandom <c1.devrandom@niftybox.net>
Thu, 16 Jan 2020 23:07:45 +0000 (15:07 -0800)
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