We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d33f24 + 5f802c9 commit 8834888Copy full SHA for 8834888
simln-lib/src/cln.rs
@@ -88,7 +88,7 @@ impl ClnNode {
88
connection.id.validate(&pubkey, &mut alias)?;
89
90
let features = if let Some(features) = our_features {
91
- NodeFeatures::from_le_bytes(features.node)
+ NodeFeatures::from_be_bytes(features.node)
92
} else {
93
NodeFeatures::empty()
94
};
@@ -248,11 +248,7 @@ impl LightningNode for ClnNode {
248
features: node
249
.features
250
.clone()
251
- .map_or(NodeFeatures::empty(), |mut f| {
252
- // We need to reverse this given it has the CLN wire encoding which is BE
253
- f.reverse();
254
- NodeFeatures::from_le_bytes(f)
255
- }),
+ .map_or(NodeFeatures::empty(), NodeFeatures::from_be_bytes),
256
})
257
258
Err(LightningError::GetNodeInfoError(
0 commit comments