]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Expose Features::from_le_bytes() method
authorValentine Wallace <vwallace@protonmail.com>
Fri, 16 Apr 2021 19:26:38 +0000 (15:26 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 23 Apr 2021 21:11:40 +0000 (17:11 -0400)
Useful for constructing features objects from raw feature bytes.

lightning/src/ln/features.rs

index 259bda85eee7925f8f455058803fa850b3f29259..4a9526aff5687d3916230c9d0c6e28b7b0a2ce32 100644 (file)
@@ -427,7 +427,6 @@ impl<T: sealed::Context> Features<T> {
                Features::<C> { flags, mark: PhantomData, }
        }
 
-       #[cfg(test)]
        /// Create a Features given a set of flags, in LE.
        pub fn from_le_bytes(flags: Vec<u8>) -> Features<T> {
                Features {