pub struct CheckpointInfo {
pub version: u64,
pub epoch: u64,
pub round: u64,
pub signatures_count: u64,
pub is_certified: bool,
}Expand description
Checkpoint (block) information with certification details.
Fields§
§version: u64The checkpoint version (same as transaction version range)
epoch: u64The epoch this checkpoint belongs to
round: u64The round number within the epoch
signatures_count: u64Number of validator signatures (should be >= 2f+1)
is_certified: boolWhether the checkpoint is certified
Implementations§
Source§impl CheckpointInfo
impl CheckpointInfo
Sourcepub fn has_quorum(&self, required_signatures: u64) -> bool
pub fn has_quorum(&self, required_signatures: u64) -> bool
Returns true if this checkpoint has sufficient validator signatures.
Trait Implementations§
Source§impl Clone for CheckpointInfo
impl Clone for CheckpointInfo
Source§fn clone(&self) -> CheckpointInfo
fn clone(&self) -> CheckpointInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointInfo
impl Debug for CheckpointInfo
Source§impl<'de> Deserialize<'de> for CheckpointInfo
impl<'de> Deserialize<'de> for CheckpointInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CheckpointInfo
impl RefUnwindSafe for CheckpointInfo
impl Send for CheckpointInfo
impl Sync for CheckpointInfo
impl Unpin for CheckpointInfo
impl UnsafeUnpin for CheckpointInfo
impl UnwindSafe for CheckpointInfo
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