diff --git a/simln-lib/src/cln.rs b/simln-lib/src/cln.rs index 174c7df..83c87a3 100644 --- a/simln-lib/src/cln.rs +++ b/simln-lib/src/cln.rs @@ -88,7 +88,7 @@ impl ClnNode { connection.id.validate(&pubkey, &mut alias)?; let features = if let Some(features) = our_features { - NodeFeatures::from_le_bytes(features.node) + NodeFeatures::from_be_bytes(features.node) } else { NodeFeatures::empty() }; @@ -248,11 +248,7 @@ impl LightningNode for ClnNode { features: node .features .clone() - .map_or(NodeFeatures::empty(), |mut f| { - // We need to reverse this given it has the CLN wire encoding which is BE - f.reverse(); - NodeFeatures::from_le_bytes(f) - }), + .map_or(NodeFeatures::empty(), NodeFeatures::from_be_bytes), }) } else { Err(LightningError::GetNodeInfoError(