Expand description
Ethereum fork types used in reth.
This crate contains Ethereum fork types and helper functions.
§Feature Flags
arbitrary
: Addsarbitrary
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§
- Chain
Hardforks - Ordered list of a chain hardforks that implement
Hardfork
. - Display
Hardforks - A container for pretty-printing a list of hardforks.
- EnrFork
IdEntry - 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.
- Ethereum
Chain Hardforks - A type allowing to configure activation
ForkCondition
s for a given list ofEthereumHardfork
s. - Fork
Filter - Re-exported EIP-2124 forkid types.
Filter that describes the state of blockchain and can be used to check incoming
ForkId
s for compatibility. - Fork
Hash - 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.
- Fork
Transition - 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.
Enums§
- Ethereum
Hardfork - The name of an Ethereum hardfork.
- Fork
Condition - The condition at which a fork is activated.
- Fork
Filter Key - Re-exported EIP-2124 forkid types. How to filter forks.
- Validation
Error - Re-exported EIP-2124 forkid types.
Reason for rejecting provided
ForkId
.
Statics§
- DEV_
HARDFORKS - Dev hardforks
Traits§
- Ethereum
Hardforks - Helper methods for Ethereum forks.
- Hardfork
- Generic hardfork trait.
- Hardforks
- Generic trait over a set of ordered hardforks