pub struct GlobalParameters {
pub consensus_security_param: usize,
pub epoch_length_scale_factor: usize,
pub active_slot_coeff_inverse: usize,
pub max_lovelace_supply: Lovelace,
pub slots_per_kes_period: u64,
pub max_kes_evolution: u8,
pub epoch_length: usize,
pub stability_window: Slot,
pub randomness_stabilization_window: u64,
pub system_start: u64,
}Fields§
§consensus_security_param: usizeThe maximum depth of a rollback, also known as the security parameter ‘k’. This translates down to the length of our volatile storage, containing states of the ledger which aren’t yet considered final.
epoch_length_scale_factor: usizeMultiplier applied to the CONSENSUS_SECURITY_PARAM to determine the epoch length.
active_slot_coeff_inverse: usizeInverse of the active slot coefficient (i.e. 1/f);
max_lovelace_supply: LovelaceMaximum supply of Ada, in lovelace (1 Ada = 1,000,000 Lovelace)
slots_per_kes_period: u64Number of slots for a single KES validity period.
max_kes_evolution: u8Maximum number of KES key evolution. Combined with SLOTS_PER_KES_PERIOD, these values indicates the validity period of a KES key before a new one is required.
epoch_length: usizeNumber of slots in an epoch
stability_window: SlotRelative slot from which data of the previous epoch can be considered stable.
randomness_stabilization_window: u64Number of slots at the end of each epoch which do NOT contribute randomness to the candidate nonce of the following epoch.
system_start: u64POSIX time (milliseconds) of the System Start.
Trait Implementations§
Source§impl Clone for GlobalParameters
impl Clone for GlobalParameters
Source§fn clone(&self) -> GlobalParameters
fn clone(&self) -> GlobalParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalParameters
impl Debug for GlobalParameters
Source§impl<'de> Deserialize<'de> for GlobalParameters
impl<'de> Deserialize<'de> for GlobalParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<NetworkName> for &GlobalParameters
impl From<NetworkName> for &GlobalParameters
Source§fn from(value: NetworkName) -> Self
fn from(value: NetworkName) -> Self
Source§impl PartialEq for GlobalParameters
impl PartialEq for GlobalParameters
Source§impl Serialize for GlobalParameters
impl Serialize for GlobalParameters
impl StructuralPartialEq for GlobalParameters
Auto Trait Implementations§
impl Freeze for GlobalParameters
impl RefUnwindSafe for GlobalParameters
impl Send for GlobalParameters
impl Sync for GlobalParameters
impl Unpin for GlobalParameters
impl UnsafeUnpin for GlobalParameters
impl UnwindSafe for GlobalParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more