Skip to content

Commit

Permalink
fix(src/node_record): from enr set both tcp,udp socket
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa committed Jun 24, 2024
1 parent 8072d4a commit a22ef94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/net/peers/src/node_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl NodeRecord {
pub fn from_secret_key(addr: SocketAddr, sk: &secp256k1::SecretKey) -> Self {
let pk = secp256k1::PublicKey::from_secret_key(secp256k1::SECP256K1, sk);
let id = PeerId::from_slice(&pk.serialize_uncompressed()[1..]);
Self::new(addr, None, id)
Self::new(addr, Some(addr), id)
}

/// Converts the `address` into an [`Ipv4Addr`] if the `address` is a mapped
Expand Down

0 comments on commit a22ef94

Please sign in to comment.