Module service

Module service 

Source

Structs§

BuilderConfig
Configuration to initialize the builder
GlobalState
ProxyGlobalState

Enums§

RecvError
An error returned from [Receiver::recv()].
TryRecvError
An error returned from [Receiver::try_recv()].

Constants§

ALLOW_EMPTY_BLOCK_PERIOD 🔒
ALLOW_EMPTY_BLOCK_PERIOD is a constant that is used to determine the number of future views that we will allow building empty blocks for.
BUILDER_STATE_EXACT_MATCH_DIVISOR 🔒
Proportion of overall allotted time to wait for optimal builder state to appear before resorting to highest view builder state
RETRY_LOOP_RESOLUTION 🔒
This constant governs duration of sleep in various retry loops in the API. If we’re re-trying something with a timeout of X, we will sleep for X / RETRY_LOOP_RESOLUTION between attempts.
VID_RESPONSE_TARGET_MARGIN_DIVISOR 🔒
We will not increment max block value if we aren’t able to serve a response with a margin below GlobalState::max_api_waiting_time more than GlobalState::max_api_waiting_time / VID_RESPONSE_TARGET_MARGIN_DIVISOR

Functions§

broadcast
Create a new broadcast channel.