From: Valentine Wallace Date: Fri, 16 Apr 2021 19:26:38 +0000 (-0400) Subject: Expose Features::from_le_bytes() method X-Git-Tag: v0.0.14~16^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f52b617c121eed193ac9c2d4feee10040b669686;p=rust-lightning Expose Features::from_le_bytes() method Useful for constructing features objects from raw feature bytes. --- diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index 259bda85e..4a9526aff 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -427,7 +427,6 @@ impl Features { Features:: { flags, mark: PhantomData, } } - #[cfg(test)] /// Create a Features given a set of flags, in LE. pub fn from_le_bytes(flags: Vec) -> Features { Features {