Crate network_utils crate

This commit is contained in:
Daniel Knopik
2025-07-18 16:47:50 +02:00
parent 1046dfbfe7
commit add4b70b0a
42 changed files with 186 additions and 149 deletions

View File

@@ -10,6 +10,7 @@ bytes = { workspace = true }
clap = { workspace = true }
clap_utils = { workspace = true }
eth2_network_config = { workspace = true }
network_utils = { workspace = true }
ethereum_ssz = { workspace = true }
hex = { workspace = true }
lighthouse_network = { workspace = true }

View File

@@ -5,8 +5,9 @@ use eth2_network_config::Eth2NetworkConfig;
use lighthouse_network::discv5::{self, enr::CombinedKey, Enr};
use lighthouse_network::{
discovery::{load_enr_from_disk, use_or_load_enr},
load_private_key, CombinedKeyExt, NetworkConfig,
load_private_key, NetworkConfig,
};
use network_utils::enr_ext::CombinedKeyExt;
use serde::{Deserialize, Serialize};
use ssz::Encode;
use std::net::{SocketAddrV4, SocketAddrV6};

View File

@@ -6,8 +6,9 @@ use clap::ArgMatches;
use eth2_network_config::Eth2NetworkConfig;
use lighthouse_network::{
discv5::{self, enr::NodeId, Discv5},
EnrExt, Eth2Enr,
Eth2Enr,
};
use network_utils::enr_ext::EnrExt;
use tracing::{info, warn};
use types::EthSpec;