Skip to content

sgns::primitives::ProductionConfiguration

Configuration data used by the PRODUCTION verification engine.

#include <production_configuration.hpp>

Inherits from IComponent

Public Functions

Name
virtual std::string GetName() override

Public Attributes

Name
ProductionDuration slot_duration
ProductionSlotNumber epoch_length
std::pair< uint64_t, uint64_t > leadership_rate
primitives::AuthorityList genesis_authorities
The authorities for the genesis epoch.
Randomness randomness
The randomness for the genesis epoch.

Additional inherited members

Public Functions inherited from IComponent

Name
virtual ~IComponent() =default

Public Functions Documentation

function GetName

inline virtual std::string GetName() override

Reimplements: IComponent::GetName

Public Attributes Documentation

variable slot_duration

ProductionDuration slot_duration {};

The slot duration in milliseconds for PRODUCTION. Currently, only the value provided by this type at genesis will be used.

Dynamic slot duration may be supported in the future.

variable epoch_length

ProductionSlotNumber epoch_length {};

variable leadership_rate

std::pair< uint64_t, uint64_t > leadership_rate;

A constant value that is used in the threshold calculation formula. Expressed as a rational where the first member of the tuple is the numerator and the second is the denominator. The rational should represent a value between 0 and 1. In substrate it is called c In the threshold formula calculation, 1 - [leadership_rate](/SuperGenius/Classes/d4/dbe/structsgns_1_1primitives_1_1_production_configuration/#variable-leadership-rate) represents the probability of a slot being empty.

variable genesis_authorities

primitives::AuthorityList genesis_authorities;

The authorities for the genesis epoch.

variable randomness

Randomness randomness;

The randomness for the genesis epoch.


Updated on 2026-03-04 at 13:10:43 -0800