Crate reth_ethereum_forks

Source
Expand description

Ethereum fork types used in reth.

This crate contains Ethereum fork types and helper functions.

§Feature Flags

  • arbitrary: Adds proptest and arbitrary support for primitive types.

Re-exports§

pub use arbitrary;arbitrary

Macros§

hardfork
Macro that defines different variants of a chain specific enum. See crate::Hardfork as an example.

Structs§

ChainHardforks
Ordered list of a chain hardforks that implement Hardfork.
DisplayHardforks
A container for pretty-printing a list of hardforks.
EnrForkIdEntry
Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
ForkFilter
Filter that describes the state of blockchain and can be used to check incoming ForkIds for compatibility.
ForkHash
CRC32 hash of all previous forks starting from genesis block.
ForkId
A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
ForkTransition
Represents a transition from one fork to another
Head
Describes the current head block.

Enums§

EthereumHardfork
The name of an Ethereum hardfork.
ForkCondition
The condition at which a fork is activated.
ForkFilterKey
How to filter forks.
ValidationError
Reason for rejecting provided ForkId.

Statics§

DEV_HARDFORKS
Dev hardforks

Traits§

EthereumHardforks
Helper methods for Ethereum forks.
Hardfork
Generic hardfork trait.
Hardforks
Generic trait over a set of ordered hardforks