pub struct FinalizationConfig {
pub voting_set_grouping: u64,
pub min_voter_balance: u64,
pub size: u64,
pub threshold: u64,
pub max_hashes_per_point: u64,
pub step_duration: u64,
pub prevote_blocks_multiple: u64,
pub enable_revote_on_boot: bool,
pub treasury_reissuance_epoch: u32,
pub ineligible_voters: Vec<[u8; 24]>,
}Expand description
ファイナライズの設定。config-network の votingSetGrouping と minVoterBalance、config-finalization から
Fields§
§voting_set_grouping: u64§min_voter_balance: u64§size: u64閾値は、重みの合計 × threshold / size
threshold: u64§max_hashes_per_point: u64§step_duration: u64stepDuration(ミリ秒)。投票の段取りで、prevote と precommit を待つ長さの単位
prevote_blocks_multiple: u64prevoteBlocksMultiple。prevote の最後の高さを、この倍数にそろえる
enable_revote_on_boot: boolenableRevoteOnBoot。起動したときに、前に書いた投票状況を使わず、最後の確定の次のポイントで投票し直す。
投票者がそろって起動し直すと、前のラウンドのメッセージを誰も持たずに止まるのを防ぐ(プライベートなネットワーク用)
treasury_reissuance_epoch: u32このエポックから、ineligible_voters を投票者から外す
ineligible_voters: Vec<[u8; 24]>Implementations§
Source§impl FinalizationConfig
impl FinalizationConfig
Sourcepub fn proof_parameters(&self) -> ProofParameters
pub fn proof_parameters(&self) -> ProofParameters
証明を確かめるのに要る分
Sourcepub fn voting_set_end_height(&self, epoch: u32) -> u64
pub fn voting_set_end_height(&self, epoch: u32) -> u64
エポック epoch の最後の高さ(ProofParameters::voting_set_end_height)
Trait Implementations§
Source§impl Clone for FinalizationConfig
impl Clone for FinalizationConfig
Source§fn clone(&self) -> FinalizationConfig
fn clone(&self) -> FinalizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FinalizationConfig
impl RefUnwindSafe for FinalizationConfig
impl Send for FinalizationConfig
impl Sync for FinalizationConfig
impl Unpin for FinalizationConfig
impl UnsafeUnpin for FinalizationConfig
impl UnwindSafe for FinalizationConfig
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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