Skip to main content

Module block

Module block 

Source

Structs§

BlockAndHeaderRequest
BlockBuilder
BlockBuilderConfig
BlockBuilderOutput
BlockCommitments
Commitments the leader computes for a block it built.
PoolEntry 🔒
PooledBlock 🔒
Transactions taken from the pool for a view, with the hashes the pool keyed them by.
RetryEntry 🔒

Enums§

BlockError
SubmitError
Why BlockBuilder::on_submit_transaction refused a transaction.

Constants§

FORWARD_ENVELOPE_BYTES 🔒
Room in a forwarded message for everything but the transactions.
SEND_LEAD 🔒
Views between a send and the first view it targets. The next view’s leader takes its block as soon as it pairs this view’s proposal, before most of this view’s submissions reach it, so a copy sent to it would mostly wait in its pool for a later turn.

Functions§

block_commitments
The leader’s commitment work for a built block, on the proposal’s critical path. The block_build bench in espresso-types calls this; its spans time each step.
forward_budget
Encoded bytes of transactions that fit in one message of max_message_size.
retry_entry_overhead 🔒
Memory charged per retry entry on top of its block size, so tiny transactions cannot outgrow max_retry_bytes. Doubled for table slack.
transaction_hashes 🔒
The payload’s transaction hashes, in any order: every consumer uses them as a set.