Skip to main content

Module generate_big_block

Module generate_big_block 

Source
Expand description

Command for generating large blocks by merging transactions from consecutive real blocks.

This command fetches consecutive blocks from an RPC until a target gas usage is reached, takes block 0 as the “base” payload, concatenates transactions from subsequent blocks, and saves the result to disk as a BigBlockPayload JSON file containing the merged [ExecutionData] and environment switches at each block boundary.

Structs§

BigBlockPayload
A merged big block payload with environment switches at block boundaries.
CollectionResult
Result of collecting transactions from blocks.
Command
reth bench generate-big-block command
RawTransaction
A single transaction with its gas used and raw encoded bytes.
RpcTransactionSource
RPC-based transaction source that fetches from a remote node.
TransactionCollector
Collects transactions from a source up to a target gas usage.

Traits§

TransactionSource
Abstraction over sources of transactions for big block generation.

Functions§

compute_payload_block_hash
Computes the block hash for an [ExecutionData] by converting it to a raw block and hashing the header.
fetch_block_access_list 🔒
merge_account_changes 🔒
merge_block_access_list 🔒
merge_slot_changes 🔒
shift_account_changes 🔒