chore: use reth_chainspec where possible (#8891)

This commit is contained in:
joshieDo
2024-06-17 18:09:09 +02:00
committed by GitHub
parent 01d81b4dcc
commit 2a5c93fab3
183 changed files with 430 additions and 261 deletions

View File

@ -11,6 +11,7 @@ license.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }
tokio.workspace = true
reth-network.workspace = true
reth-chainspec.workspace = true
reth-primitives.workspace = true
serde_json.workspace = true
reth-tracing.workspace = true

View File

@ -1,6 +1,6 @@
use reth_primitives::{
b256, BaseFeeParams, Chain, ChainSpec, ForkCondition, Hardfork, Head, NodeRecord, B256,
};
use reth_chainspec::{BaseFeeParams, Chain, ChainSpec, ForkCondition, Hardfork};
use reth_discv4::NodeRecord;
use reth_primitives::{b256, Head, B256};
use std::{collections::BTreeMap, sync::Arc};
@ -24,7 +24,7 @@ pub(crate) fn polygon_chain_spec() -> Arc<ChainSpec> {
(Hardfork::Shanghai, ForkCondition::Block(SHANGAI_BLOCK)),
]),
deposit_contract: None,
base_fee_params: reth_primitives::BaseFeeParamsKind::Constant(BaseFeeParams::ethereum()),
base_fee_params: reth_chainspec::BaseFeeParamsKind::Constant(BaseFeeParams::ethereum()),
prune_delete_limit: 0,
}
.into()