mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm chainspec max gas limit (#13308)
This commit is contained in:
@ -29,8 +29,6 @@ pub static BASE_MAINNET: LazyLock<Arc<OpChainSpec>> = LazyLock::new(|| {
|
||||
]
|
||||
.into(),
|
||||
),
|
||||
max_gas_limit: crate::constants::BASE_MAINNET_MAX_GAS_LIMIT,
|
||||
prune_delete_limit: 10000,
|
||||
..Default::default()
|
||||
},
|
||||
}
|
||||
|
||||
@ -29,7 +29,6 @@ pub static BASE_SEPOLIA: LazyLock<Arc<OpChainSpec>> = LazyLock::new(|| {
|
||||
]
|
||||
.into(),
|
||||
),
|
||||
max_gas_limit: crate::constants::BASE_SEPOLIA_MAX_GAS_LIMIT,
|
||||
prune_delete_limit: 10000,
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
@ -317,10 +317,6 @@ impl EthChainSpec for OpChainSpec {
|
||||
self.inner.genesis()
|
||||
}
|
||||
|
||||
fn max_gas_limit(&self) -> u64 {
|
||||
self.inner.max_gas_limit()
|
||||
}
|
||||
|
||||
fn bootnodes(&self) -> Option<Vec<NodeRecord>> {
|
||||
self.inner.bootnodes()
|
||||
}
|
||||
@ -1079,7 +1075,6 @@ mod tests {
|
||||
paris_block_and_final_difficulty: Some((0, U256::from(0))),
|
||||
hardforks,
|
||||
base_fee_params: BASE_SEPOLIA.inner.base_fee_params.clone(),
|
||||
max_gas_limit: crate::constants::BASE_SEPOLIA_MAX_GAS_LIMIT,
|
||||
prune_delete_limit: 10000,
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
@ -1,16 +1,13 @@
|
||||
//! Chain specification for the Optimism Mainnet network.
|
||||
|
||||
use crate::{LazyLock, OpChainSpec};
|
||||
use alloc::{sync::Arc, vec};
|
||||
|
||||
use alloy_chains::Chain;
|
||||
use alloy_eips::eip1559::ETHEREUM_BLOCK_GAS_LIMIT;
|
||||
use alloy_primitives::{b256, U256};
|
||||
use reth_chainspec::{once_cell_set, BaseFeeParams, BaseFeeParamsKind, ChainSpec};
|
||||
use reth_ethereum_forks::EthereumHardfork;
|
||||
use reth_optimism_forks::OpHardfork;
|
||||
|
||||
use crate::{LazyLock, OpChainSpec};
|
||||
|
||||
/// The Optimism Mainnet spec
|
||||
pub static OP_MAINNET: LazyLock<Arc<OpChainSpec>> = LazyLock::new(|| {
|
||||
OpChainSpec {
|
||||
@ -32,7 +29,6 @@ pub static OP_MAINNET: LazyLock<Arc<OpChainSpec>> = LazyLock::new(|| {
|
||||
]
|
||||
.into(),
|
||||
),
|
||||
max_gas_limit: ETHEREUM_BLOCK_GAS_LIMIT,
|
||||
prune_delete_limit: 10000,
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
@ -1,16 +1,13 @@
|
||||
//! Chain specification for the Optimism Sepolia testnet network.
|
||||
|
||||
use crate::{LazyLock, OpChainSpec};
|
||||
use alloc::{sync::Arc, vec};
|
||||
|
||||
use alloy_chains::{Chain, NamedChain};
|
||||
use alloy_eips::eip1559::ETHEREUM_BLOCK_GAS_LIMIT;
|
||||
use alloy_primitives::{b256, U256};
|
||||
use reth_chainspec::{once_cell_set, BaseFeeParams, BaseFeeParamsKind, ChainSpec};
|
||||
use reth_ethereum_forks::EthereumHardfork;
|
||||
use reth_optimism_forks::OpHardfork;
|
||||
|
||||
use crate::{LazyLock, OpChainSpec};
|
||||
|
||||
/// The OP Sepolia spec
|
||||
pub static OP_SEPOLIA: LazyLock<Arc<OpChainSpec>> = LazyLock::new(|| {
|
||||
OpChainSpec {
|
||||
@ -30,7 +27,6 @@ pub static OP_SEPOLIA: LazyLock<Arc<OpChainSpec>> = LazyLock::new(|| {
|
||||
]
|
||||
.into(),
|
||||
),
|
||||
max_gas_limit: ETHEREUM_BLOCK_GAS_LIMIT,
|
||||
prune_delete_limit: 10000,
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user