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 BigBlockData JSON file containing the merged
[ExecutionData] and environment switches at each block boundary.
Structsยง
- BigBlocks
Initial ๐State - State used to continue generated big block replay from the benchmark nodeโs current tip.
- Collection
Result - Result of collecting transactions from blocks.
- Command
reth bench generate-big-blockcommand- RawTransaction
- A single transaction with its gas used and raw encoded bytes.
- RpcTransaction
Source - RPC-based transaction source that fetches from a remote node.
- Transaction
Collector - Collects transactions from a source up to a target gas usage.
Traitsยง
- Transaction
Source - Abstraction over sources of transactions for big block generation.
Functionsยง
- big_
blocks_ ๐stream - Produces a stream of big block payloads given a stream of regular blocks.
- compute_
payload_ block_ hash - Computes the block hash for an [
ExecutionData] by converting it to a raw block and hashing the header. - fetch_
one_ ๐block - Fetches one block + receipts (and optionally its BAL) from the RPC. Returns
Ok(None)when the block doesnโt exist yet (chain-tip reached). - merge_
account_ ๐changes - merge_
block_ ๐access_ list - merge_
slot_ ๐changes - shift_
account_ ๐changes