Skip to main content

Module generate_big_block

Module generate_big_block 

Source
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Β§

BuiltPayload πŸ”’
A built payload ready for execution.
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.
TxBuffer πŸ”’
Buffer for receiving transaction batches from the fetcher.

EnumsΒ§

RetryOutcome πŸ”’
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_used is within 1M of target, don’t retry.

TraitsΒ§

TransactionSource
Abstraction over sources of transactions for big block generation.

FunctionsΒ§

fetch_batch_with_retry πŸ”’
Fetches a batch of transactions with retry logic.