We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9de51f0 + 2b1d693 commit eea19deCopy full SHA for eea19de
lightning/src/ln/features.rs
@@ -718,7 +718,11 @@ impl<T: sealed::Context> Features<T> {
718
Ok(())
719
}
720
721
- fn from_be_bytes(mut flags: Vec<u8>) -> Features<T> {
+ /// 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
+ pub fn from_be_bytes(mut flags: Vec<u8>) -> Features<T> {
726
flags.reverse(); // Swap to little-endian
727
Self {
728
flags,
0 commit comments