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 arbitrary support for primitive types.

Modules§

arbitrum
Arbitrum hardfork starting points
error
Error types for the hardforks crate.
ethereum
Ethereum hardfork starting points

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
Re-exported EIP-2124 forkid types. Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
EthereumChainHardforks
A type allowing to configure activation ForkConditions for a given list of EthereumHardforks.
ForkFilter
Re-exported EIP-2124 forkid types. Filter that describes the state of blockchain and can be used to check incoming ForkIds for compatibility.
ForkHash
Re-exported EIP-2124 forkid types. CRC32 hash of all previous forks starting from genesis block.
ForkId
Re-exported EIP-2124 forkid types. A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
ForkTransition
Re-exported EIP-2124 forkid types. Represents a transition from one fork to another
Head
Re-exported EIP-2124 forkid types. Describes the current head block.
ParseHardforkError
Error type for hardfork related errors.

Enums§

EthereumHardfork
The name of an Ethereum hardfork.
ForkCondition
The condition at which a fork is activated.
ForkFilterKey
Re-exported EIP-2124 forkid types. How to filter forks.
ValidationError
Re-exported EIP-2124 forkid types. 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