pub struct ProofParameters {
pub voting_set_grouping: u64,
pub size: u64,
pub threshold: u64,
pub max_hashes_per_point: u64,
}Expand description
証明を確かめるのに要る、ネットワークの設定(config-network.properties の [chain] と [finalization])
Fields§
§voting_set_grouping: u64votingSetGrouping。エポックの長さ(ブロック)
size: u64size。閾値は、重みの合計 × threshold / size
threshold: u64threshold
max_hashes_per_point: u64maxHashesPerPoint。1つのメッセージに入れられるハッシュの数
Implementations§
Source§impl ProofParameters
impl ProofParameters
Sourcepub fn voting_set_end_height(&self, epoch: u32) -> u64
pub fn voting_set_end_height(&self, epoch: u32) -> u64
エポック epoch の最後の高さ。次のエポックの投票者は、この高さの状態で決まる。
catapult の CalculateVotingSetEndHeight
Trait Implementations§
Source§impl Clone for ProofParameters
impl Clone for ProofParameters
Source§fn clone(&self) -> ProofParameters
fn clone(&self) -> ProofParameters
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 moreimpl Copy for ProofParameters
Source§impl Debug for ProofParameters
impl Debug for ProofParameters
impl Eq for ProofParameters
Source§impl PartialEq for ProofParameters
impl PartialEq for ProofParameters
impl StructuralPartialEq for ProofParameters
Auto Trait Implementations§
impl Freeze for ProofParameters
impl RefUnwindSafe for ProofParameters
impl Send for ProofParameters
impl Sync for ProofParameters
impl Unpin for ProofParameters
impl UnsafeUnpin for ProofParameters
impl UnwindSafe for ProofParameters
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