Expand description
Command for generating large blocks by packing transactions from real blocks.
This command fetches transactions from existing blocks and packs them into a single
large block using the testing_buildBlockV1 RPC endpoint.
StructsΒ§
- Built
Payload π - A built payload ready for execution.
- 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.
- TxBuffer π
- Buffer for receiving transaction batches from the fetcher.
EnumsΒ§
- Retry
Outcome π - Outcome of a build attempt check.
ConstantsΒ§
- MAX_
ADDITIONAL_ πGAS_ MULTIPLIER - Maximum gas to request in retries (10x target as safety cap).
- MAX_
BUILD_ πRETRIES - Constants for retry logic.
- MAX_
FETCH_ πRETRIES - Maximum retries for fetching a transaction batch.
- MIN_
TARGET_ πSLACK - Tolerance: if
gas_usedis within 1M of target, donβt retry.
TraitsΒ§
- Transaction
Source - Abstraction over sources of transactions for big block generation.
FunctionsΒ§
- fetch_
batch_ πwith_ retry - Fetches a batch of transactions with retry logic.