mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(net): use NodeRecord instead of enode format (#530)
* feat(eth-wire): add timeouts to tests using Geth * feat(net): use NodeRecord instead of enode format * make NodeRecord::new pub instead of pub(crate) Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -62,9 +62,9 @@ impl NodeRecord {
|
||||
Self::new(addr, id)
|
||||
}
|
||||
|
||||
/// Creates a new record
|
||||
/// Creates a new record from a socket addr and peer id.
|
||||
#[allow(unused)]
|
||||
pub(crate) fn new(addr: SocketAddr, id: PeerId) -> Self {
|
||||
pub fn new(addr: SocketAddr, id: PeerId) -> Self {
|
||||
Self { address: addr.ip(), tcp_port: addr.port(), udp_port: addr.port(), id }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user