pub struct Parameters {
    pub header_size: usize,
    pub max_header_delay: Duration,
    pub gc_depth: u64,
    pub sync_retry_delay: Duration,
    pub sync_retry_nodes: usize,
    pub batch_size: usize,
    pub max_batch_delay: Duration,
    pub block_synchronizer: BlockSynchronizerParameters,
    pub consensus_api_grpc: ConsensusAPIGrpcParameters,
    pub max_concurrent_requests: usize,
    pub prometheus_metrics: PrometheusMetricsParameters,
}
Expand description

Holds all the node properties. An example is provided to showcase the usage and deserialization from a json file. To define a Duration on the property file can use either milliseconds or seconds (e.x 5s, 10ms , 2000ms).

Fields

header_size: usize

The preferred header size. The primary creates a new header when it has enough parents and enough batches’ digests to reach header_size. Denominated in bytes.

max_header_delay: Duration

The maximum delay that the primary waits between generating two headers, even if the header did not reach max_header_size.

gc_depth: u64

The depth of the garbage collection (Denominated in number of rounds).

sync_retry_delay: Duration

The delay after which the synchronizer retries to send sync requests. Denominated in ms.

sync_retry_nodes: usize

Determine with how many nodes to sync when re-trying to send sync-request. These nodes are picked at random from the committee.

batch_size: usize

The preferred batch size. The workers seal a batch of transactions when it reaches this size. Denominated in bytes.

max_batch_delay: Duration

The delay after which the workers seal a batch of transactions, even if max_batch_size is not reached.

block_synchronizer: BlockSynchronizerParameters

The parameters for the block synchronizer

consensus_api_grpc: ConsensusAPIGrpcParameters

The parameters for the Consensus API gRPC server

max_concurrent_requests: usize

The maximum number of concurrent requests for messages accepted from an un-trusted entity

prometheus_metrics: PrometheusMetricsParameters

Properties for the prometheus metrics

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Completely overwrites this value.

Returns the argument unchanged.

Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more