Module stages

Module stages 

Source
Expand description

Implementations of stages.

Structs§

AccountHashingStage
Account hashing stage hashes plain account. This is preparation before generating intermediate hashes and calculating Merkle tree root.
BodyStage
The body stage downloads block bodies.
EraStage
The ERA1 pre-merge history stage.
ExecutionStage
The execution stage executes all transactions and update history indexes.
FinishStage
The finish stage.
HeaderStage
The headers stage.
IndexAccountHistoryStage
Stage is indexing history the account changesets generated in ExecutionStage. For more information on index sharding take a look at [tables::AccountsHistory]
IndexStorageHistoryStage
Stage is indexing history the account changesets generated in ExecutionStage. For more information on index sharding take a look at [tables::StoragesHistory].
PruneSenderRecoveryStage
The prune sender recovery stage that runs the pruner with the provided PruneMode for the SenderRecovery segment.
PruneStage
The prune stage that runs the pruner with the provided prune modes.
SeedOpts
SeedOpts provides configuration parameters for calling AccountHashingStage::seed in unit tests or benchmarks to generate an initial database state for running the stage.
SenderRecoveryStage
The sender recovery stage iterates over existing transactions, recovers the transaction signer and stores them in [TransactionSenders][reth_db_api::tables::TransactionSenders] table.
StorageHashingStage
Storage hashing stage hashes plain storage. This is preparation before generating intermediate hashes and calculating Merkle tree root.
TransactionLookupStage
The transaction lookup stage.

Enums§

EraImportSource
Describes where to get the era files from.
MerkleStage
The merkle hashing stage uses input from AccountHashingStage and StorageHashingStage 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.