From 4fd57098c0aa5a0adc1d1feeae6f60f8740b44b8 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Sat, 26 Nov 2022 01:36:25 -0500 Subject: [PATCH] add comments for ids --- ethers-providers/src/admin.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ethers-providers/src/admin.rs b/ethers-providers/src/admin.rs index cefae3711b..eefc430c86 100644 --- a/ethers-providers/src/admin.rs +++ b/ethers-providers/src/admin.rs @@ -8,8 +8,7 @@ use std::net::{IpAddr, SocketAddr}; /// details. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct NodeInfo { - // TODO: double check that this is a public key - /// The node's secp256k1 public key. + /// The node's private key. pub id: H256, /// The node's user agent, containing a client name, version, OS, and other metadata. @@ -143,9 +142,8 @@ pub struct PeerInfo { /// The peer's enode URL. pub enode: String, - // TODO: unify comment with the one in `NodeInfo` /// The peer's enode ID. - pub id: H256, + pub id: String, /// The peer's name. pub name: String,