We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b1b724 commit 7b72c6bCopy full SHA for 7b72c6b
lightning/src/ln/features.rs
@@ -718,6 +718,10 @@ impl<T: sealed::Context> Features<T> {
718
Ok(())
719
}
720
721
+ /// Create a Features given a set of flags, in big-endian. This is in byte order from
722
+ /// most on-the-wire encodings.
723
+ ///
724
+ /// This is not exported to bindings users as we don't support export across multiple T
725
fn from_be_bytes(mut flags: Vec<u8>) -> Features<T> {
726
flags.reverse(); // Swap to little-endian
727
Self {
0 commit comments