You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The first serialized peer shown in geth's documentation example: https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-admin#admin-peers
105
104
// The fields "localAddress", "static", "trusted" and "name" were removed as we do not have the necessary information to show them
106
-
let expected_serialized_peer = r#"{ caps : ["eth/68", "snap/1"], enode : "enode://4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052@157.90.35.166:30303", id : "6b36f791352f15eb3ec4f67787074ab8ad9d487e37c4401d383f0561a0a20507", network : { inbound : false, remoteAddress : "157.90.35.166:30303"}, protocols : { eth : { version : 68 }, snap : { version : 1 }}"#.to_string();
105
+
// Also the capability versions were removed as we don't currenlty store them in the Capability enum
106
+
// We should add them along with https://github.com/lambdaclass/ethrex/issues/1578
107
+
// Misc: Added 0x prefix to node id, there is no set spec for this method so the prefix shouldn't be a problem
108
+
let expected_serialized_peer = r#"{"caps":["eth","snap"],"enode":"enode://4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052@157.90.35.166:30303","id":"0x6b36f791352f15eb3ec4f67787074ab8ad9d487e37c4401d383f0561a0a20507","network":{"inbound":false,"remoteAddress":"157.90.35.166:30303"},"protocols":{"eth":{"version":68},"snap":{"version":1}}}"#.to_string();
107
109
let serialized_peer =
108
110
serde_json::to_string(&RpcPeer::from(peer)).expect("Failed to serialize peer");
0 commit comments