1
1
pub use alloy_eips:: eip1559:: BaseFeeParams ;
2
2
3
+ use crate :: { constants:: MAINNET_DEPOSIT_CONTRACT , once_cell_set, EthChainSpec , LazyLock , OnceLock } ;
3
4
use alloc:: { boxed:: Box , sync:: Arc , vec:: Vec } ;
4
5
use alloy_chains:: { Chain , NamedChain } ;
5
- use alloy_consensus:: constants:: EMPTY_WITHDRAWALS ;
6
+ use alloy_consensus:: {
7
+ constants:: {
8
+ DEV_GENESIS_HASH , EMPTY_WITHDRAWALS , HOLESKY_GENESIS_HASH , MAINNET_GENESIS_HASH ,
9
+ SEPOLIA_GENESIS_HASH ,
10
+ } ,
11
+ Header ,
12
+ } ;
6
13
use alloy_eips:: {
7
14
eip1559:: INITIAL_BASE_FEE , eip6110:: MAINNET_DEPOSIT_CONTRACT_ADDRESS ,
8
15
eip7685:: EMPTY_REQUESTS_HASH ,
9
16
} ;
10
17
use alloy_genesis:: Genesis ;
11
18
use alloy_primitives:: { address, b256, Address , BlockNumber , B256 , U256 } ;
12
19
use derive_more:: From ;
13
-
14
- use alloy_consensus:: {
15
- constants:: {
16
- DEV_GENESIS_HASH , HOLESKY_GENESIS_HASH , MAINNET_GENESIS_HASH , SEPOLIA_GENESIS_HASH ,
17
- } ,
18
- Header ,
19
- } ;
20
- use alloy_eips:: eip1559:: ETHEREUM_BLOCK_GAS_LIMIT ;
21
20
use reth_ethereum_forks:: {
22
21
ChainHardforks , DisplayHardforks , EthereumHardfork , EthereumHardforks , ForkCondition ,
23
22
ForkFilter , ForkFilterKey , ForkHash , ForkId , Hardfork , Hardforks , Head , DEV_HARDFORKS ,
@@ -29,8 +28,6 @@ use reth_network_peers::{
29
28
use reth_primitives_traits:: SealedHeader ;
30
29
use reth_trie_common:: root:: state_root_ref_unhashed;
31
30
32
- use crate :: { constants:: MAINNET_DEPOSIT_CONTRACT , once_cell_set, EthChainSpec , LazyLock , OnceLock } ;
33
-
34
31
/// The Ethereum mainnet spec
35
32
pub static MAINNET : LazyLock < Arc < ChainSpec > > = LazyLock :: new ( || {
36
33
let mut spec = ChainSpec {
@@ -52,7 +49,6 @@ pub static MAINNET: LazyLock<Arc<ChainSpec>> = LazyLock::new(|| {
52
49
b256 ! ( "649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5" ) ,
53
50
) ) ,
54
51
base_fee_params : BaseFeeParamsKind :: Constant ( BaseFeeParams :: ethereum ( ) ) ,
55
- max_gas_limit : ETHEREUM_BLOCK_GAS_LIMIT ,
56
52
prune_delete_limit : 20000 ,
57
53
} ;
58
54
spec. genesis . config . dao_fork_support = true ;
@@ -77,7 +73,6 @@ pub static SEPOLIA: LazyLock<Arc<ChainSpec>> = LazyLock::new(|| {
77
73
b256 ! ( "649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5" ) ,
78
74
) ) ,
79
75
base_fee_params : BaseFeeParamsKind :: Constant ( BaseFeeParams :: ethereum ( ) ) ,
80
- max_gas_limit : ETHEREUM_BLOCK_GAS_LIMIT ,
81
76
prune_delete_limit : 10000 ,
82
77
} ;
83
78
spec. genesis . config . dao_fork_support = true ;
@@ -100,7 +95,6 @@ pub static HOLESKY: LazyLock<Arc<ChainSpec>> = LazyLock::new(|| {
100
95
b256 ! ( "649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5" ) ,
101
96
) ) ,
102
97
base_fee_params : BaseFeeParamsKind :: Constant ( BaseFeeParams :: ethereum ( ) ) ,
103
- max_gas_limit : ETHEREUM_BLOCK_GAS_LIMIT ,
104
98
prune_delete_limit : 10000 ,
105
99
} ;
106
100
spec. genesis . config . dao_fork_support = true ;
@@ -208,9 +202,6 @@ pub struct ChainSpec {
208
202
/// The parameters that configure how a block's base fee is computed
209
203
pub base_fee_params : BaseFeeParamsKind ,
210
204
211
- /// The maximum gas limit
212
- pub max_gas_limit : u64 ,
213
-
214
205
/// The delete limit for pruner, per run.
215
206
pub prune_delete_limit : usize ,
216
207
}
@@ -226,7 +217,6 @@ impl Default for ChainSpec {
226
217
hardforks : Default :: default ( ) ,
227
218
deposit_contract : Default :: default ( ) ,
228
219
base_fee_params : BaseFeeParamsKind :: Constant ( BaseFeeParams :: ethereum ( ) ) ,
229
- max_gas_limit : ETHEREUM_BLOCK_GAS_LIMIT ,
230
220
prune_delete_limit : MAINNET . prune_delete_limit ,
231
221
}
232
222
}
0 commit comments