Skip to content

Commit

Permalink
add comments for ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Nov 26, 2022
1 parent 6dab223 commit 4fd5709
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ethers-providers/src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4fd5709

Please sign in to comment.