Skip to content

extract Chainspec type from primitives #7929

@mattsse

Description

@mattsse

The chainspec type bloats reth-primitives

/// An Ethereum chain specification.
///
/// A chain specification describes:
///
/// - Meta-information about the chain (the chain ID)
/// - The genesis block of the chain ([`Genesis`])
/// - What hardforks are activated, and under which conditions
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct ChainSpec {

the entire mod should be converted into its own crate

https://github.com/paradigmxyz/reth/blob/cc4a418ddf73ae5af240b403e4b6e1d191130cee/crates/primitives/src/chain/mod.rs

this type is used quite a lot, we can likely re-export this type from reth-provider or similar

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-debtA clean up/refactor of existing codeD-good-first-issueNice and easy! A great choice to get startedM-prevent-stalePrevents old inactive issues/PRs from being closed due to inactivity

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions