Skip to main content

Module chainspec

Module chainspec 

Source
Expand description

Custom chain specification integrating hardforks.

This demonstrates how to build a ChainSpec with custom hardforks, implementing required traits for integration with Reth’s chain management.

Re-exportsΒ§

use alloy_eips::eip7840::BlobParams; πŸ”’
use alloy_genesis::Genesis; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::U256; πŸ”’
use reth_chainspec::hardfork; πŸ”’
use reth_chainspec::BaseFeeParams; πŸ”’
use reth_chainspec::Chain; πŸ”’
use reth_chainspec::ChainSpec; πŸ”’
use reth_chainspec::DepositContract; πŸ”’
use reth_chainspec::EthChainSpec; πŸ”’
use reth_chainspec::EthereumHardfork; πŸ”’
use reth_chainspec::EthereumHardforks; πŸ”’
use reth_chainspec::ForkCondition; πŸ”’
use reth_chainspec::Hardfork; πŸ”’
use reth_chainspec::Hardforks; πŸ”’
use reth_network_peers::NodeRecord; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’

StructsΒ§

CustomChainSpec
CustomHardforkConfig

EnumsΒ§

CustomHardfork
Custom hardforks for the example chain.