feat: use new ChainHardforks type on ChainSpec (#9065)

This commit is contained in:
joshieDo
2024-06-27 19:39:35 +02:00
committed by GitHub
parent c23fe39dd3
commit 50ee497c75
57 changed files with 1708 additions and 1465 deletions

View File

@ -415,7 +415,7 @@ mod tests {
use alloy_rlp::{Decodable, Encodable};
use enr::EnrKey;
use reth_chainspec::MAINNET;
use reth_ethereum_forks::{ForkHash, Hardfork};
use reth_ethereum_forks::{EthereumHardfork, ForkHash};
use secp256k1::rand::thread_rng;
use std::{future::poll_fn, net::Ipv4Addr};
@ -513,7 +513,7 @@ mod tests {
resolver.insert(link.domain.clone(), root.to_string());
let mut builder = Enr::builder();
let fork_id = MAINNET.hardfork_fork_id(Hardfork::Frontier).unwrap();
let fork_id = MAINNET.hardfork_fork_id(EthereumHardfork::Frontier).unwrap();
builder
.ip4(Ipv4Addr::LOCALHOST)
.udp4(30303)