Expand description
Implementations of stages.
Structs§
- Account
Hashing Stage - Account hashing stage hashes plain account. This is preparation before generating intermediate hashes and calculating Merkle tree root.
- Body
Stage - The body stage downloads block bodies.
- EraStage
- The ERA1 pre-merge history stage.
- Execution
Stage - The execution stage executes all transactions and update history indexes.
- Finish
Stage - The finish stage.
- Header
Stage - The headers stage.
- Index
Account History Stage - Stage is indexing history the account changesets generated in
ExecutionStage
. For more information on index sharding take a look at [tables::AccountsHistory
] - Index
Storage History Stage - Stage is indexing history the account changesets generated in
ExecutionStage
. For more information on index sharding take a look at [tables::StoragesHistory
]. - Prune
Sender Recovery Stage - The prune sender recovery stage that runs the pruner with the provided
PruneMode
for theSenderRecovery
segment. - Prune
Stage - The prune stage that runs the pruner with the provided prune modes.
- Seed
Opts SeedOpts
provides configuration parameters for callingAccountHashingStage::seed
in unit tests or benchmarks to generate an initial database state for running the stage.- Sender
Recovery Stage - The sender recovery stage iterates over existing transactions,
recovers the transaction signer and stores them
in [
TransactionSenders
][reth_db_api::tables::TransactionSenders] table. - Storage
Hashing Stage - Storage hashing stage hashes plain storage. This is preparation before generating intermediate hashes and calculating Merkle tree root.
- Transaction
Lookup Stage - The transaction lookup stage.
Enums§
- EraImport
Source - Describes where to get the era files from.
- Merkle
Stage - The merkle hashing stage uses input from
AccountHashingStage
andStorageHashingStage
to calculate intermediate hashes and state roots.
Constants§
- INVALID_
STATE_ ROOT_ ERROR_ MESSAGE - The error message that we include in invalid state root errors to tell users what information they should include in a bug report, since true state root errors can be impossible to debug with just basic logs.
- MERKLE_
STAGE_ DEFAULT_ INCREMENTAL_ THRESHOLD - The default threshold (in number of blocks) to run the stage in incremental mode. The incremental mode will calculate the state root for a large range of blocks by calculating the new state root for this many blocks, in batches, repeating until we reach the desired block number.
- MERKLE_
STAGE_ DEFAULT_ REBUILD_ THRESHOLD - The default threshold (in number of blocks) for switching from incremental trie building of changes to whole rebuild.
Functions§
- calculate_
gas_ used_ from_ headers - Calculates the total amount of gas used from the headers in the given range.