projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cbe4a0
)
Expose Features::from_le_bytes() method
author
Valentine Wallace
<vwallace@protonmail.com>
Fri, 16 Apr 2021 19:26:38 +0000
(15:26 -0400)
committer
Valentine 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
patch
|
blob
|
history
diff --git
a/lightning/src/ln/features.rs
b/lightning/src/ln/features.rs
index 259bda85eee7925f8f455058803fa850b3f29259..4a9526aff5687d3916230c9d0c6e28b7b0a2ce32 100644
(file)
--- a/
lightning/src/ln/features.rs
+++ b/
lightning/src/ln/features.rs
@@
-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 {