Skip to main content

Module block

Module block 

Source
Expand description

Block types and the wrappers that pair them with their execution outcomes.

Structs§

Block
Block defines the atomic unit of growth of the Linera chain.
BlockBody
The body of a block containing all the data included in the block.
BlockHeader
Succinct representation of a block. Contains all the metadata to follow the chain of blocks or verifying inclusion (event, message, oracle response, etc.) in the block’s body.
ConfirmedBlock
Wrapper around a Block that has been confirmed.
PreviousEventBlocksMap
Hashable wrapper around the lookup table mapping each stream to the previous block that published events to it.
PreviousMessageBlocksMap
Hashable wrapper around the lookup table mapping each recipient chain to the previous block that sent it messages.
Timeout
A request to move on to the next consensus round, certified when no block is confirmed in time.
ValidatedBlock
Wrapper around a Block that has been validated.

Enums§

BlockBodyField
A single field of a BlockBody, paired with enough data to recompute its hash and check it against the matching hash in a BlockHeader. This lets a holder of a header prove that one body field belongs to the block without the rest of the body.
ConversionError
Failure to convert a Certificate into one of the expected certificate types.