File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,8 @@ impl ClnNode {
87
87
. map_err ( |err| LightningError :: GetInfoError ( err. to_string ( ) ) ) ?;
88
88
connection. id . validate ( & pubkey, & mut alias) ?;
89
89
90
- let features = if let Some ( mut features) = our_features {
91
- features. node . reverse ( ) ;
92
- NodeFeatures :: from_le_bytes ( features. node )
90
+ let features = if let Some ( features) = our_features {
91
+ NodeFeatures :: from_be_bytes ( features. node )
93
92
} else {
94
93
NodeFeatures :: empty ( )
95
94
} ;
@@ -249,11 +248,7 @@ impl LightningNode for ClnNode {
249
248
features : node
250
249
. features
251
250
. clone ( )
252
- . map_or ( NodeFeatures :: empty ( ) , |mut f| {
253
- // We need to reverse this given it has the CLN wire encoding which is BE
254
- f. reverse ( ) ;
255
- NodeFeatures :: from_le_bytes ( f)
256
- } ) ,
251
+ . map_or ( NodeFeatures :: empty ( ) , NodeFeatures :: from_be_bytes) ,
257
252
} )
258
253
} else {
259
254
Err ( LightningError :: GetNodeInfoError (
You can’t perform that action at this time.
0 commit comments