Skip to content

Commit 6396faf

Browse files
committed
Reversing the feature bits before parsing them in the ClnNode constructor
1 parent 4d33f24 commit 6396faf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

simln-lib/src/cln.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ impl ClnNode {
8787
.map_err(|err| LightningError::GetInfoError(err.to_string()))?;
8888
connection.id.validate(&pubkey, &mut alias)?;
8989

90-
let features = if let Some(features) = our_features {
90+
let features = if let Some(mut features) = our_features {
91+
features.node.reverse();
9192
NodeFeatures::from_le_bytes(features.node)
9293
} else {
9394
NodeFeatures::empty()

0 commit comments

Comments
 (0)