diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index bcaa91ab2..d10c3a719 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -718,7 +718,11 @@ impl Features { Ok(()) } - fn from_be_bytes(mut flags: Vec) -> Features { + /// Create a [`Features`] given a set of flags, in big-endian. This is in byte order from + /// most on-the-wire encodings. + /// + /// This is not exported to bindings users as we don't support export across multiple T + pub fn from_be_bytes(mut flags: Vec) -> Features { flags.reverse(); // Swap to little-endian Self { flags,