Struct narwhal_config::Parameters
source · [−]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
sourceimpl Parameters
impl Parameters
Trait Implementations
sourceimpl Clone for Parameters
impl Clone for Parameters
sourcefn clone(&self) -> Parameters
fn clone(&self) -> Parameters
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more