chore: phase out some ethers usage (#3467)

This commit is contained in:
Matthias Seitz
2023-06-29 17:28:28 +02:00
committed by GitHub
parent d3465e2e32
commit f49feff5a7
7 changed files with 50 additions and 61 deletions

View File

@ -3,7 +3,7 @@ use crate::{
};
use async_trait::async_trait;
use reth_eth_wire::{DisconnectReason, ProtocolVersion};
use reth_primitives::{rpc::Chain::Mainnet, NodeRecord, PeerId};
use reth_primitives::{Chain, NodeRecord, PeerId};
use reth_rpc_types::{EthProtocolInfo, NetworkStatus};
use std::net::{IpAddr, SocketAddr};
@ -33,7 +33,7 @@ impl NetworkInfo for NoopNetwork {
}
fn chain_id(&self) -> u64 {
Mainnet.into()
Chain::mainnet().into()
}
fn is_syncing(&self) -> bool {