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 {
8787 . map_err ( |err| LightningError :: GetInfoError ( err. to_string ( ) ) ) ?;
8888 connection. id . validate ( & pubkey, & mut alias) ?;
8989
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 )
9392 } else {
9493 NodeFeatures :: empty ( )
9594 } ;
@@ -249,11 +248,7 @@ impl LightningNode for ClnNode {
249248 features : node
250249 . features
251250 . 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) ,
257252 } )
258253 } else {
259254 Err ( LightningError :: GetNodeInfoError (
You can’t perform that action at this time.
0 commit comments