Skip to main content

Module worker

Module worker 

Source
Expand description

The worker that validates and processes blocks and certificates for chains.

Structs§

ChainStateViewReadGuard
A read guard providing access to a chain’s ChainStateView.
NetworkActions
Instruct the networking layer to send cross-chain requests and/or push notifications.
Notification
Notification that a chain has a new certified block or a new message.
WorkerState
State of a worker in a validator or a local node.

Enums§

Reason
Reason for the notification.
WorkerError
Error type for worker operations.

Constants§

DEFAULT_BLOCK_CACHE_SIZE
The default maximum number of confirmed blocks kept in the worker’s block cache.
DEFAULT_EXECUTION_STATE_CACHE_SIZE
The default maximum number of execution state views kept in the worker’s cache.

Traits§

ProcessableCertificate
A certificate value that the worker knows how to process.

Type Aliases§

OutboundCrossChainSender
Dispatcher for outbound cross-chain requests that handles the source-shard-to- target-shard routing that the worker itself is not aware of.