pub enum ProofType {
InvalidType,
DuplicateBlockProof,
}Expand description
Types of slashing proofs
Variants§
InvalidType
Invalid proof type
DuplicateBlockProof
Proof consisting of 2 shreds signed by the leader indicating the leader submitted a duplicate block.
Implementations§
Source§impl ProofType
impl ProofType
Sourcepub const fn proof_account_length(&self) -> usize
pub const fn proof_account_length(&self) -> usize
Size of the proof account to create in order to hold the proof data header and contents
Sourcepub fn violation_str(&self) -> &str
pub fn violation_str(&self) -> &str
Display string for this proof type’s violation
Trait Implementations§
impl Copy for ProofType
impl Eq for ProofType
impl StructuralPartialEq for ProofType
Auto Trait Implementations§
impl Freeze for ProofType
impl RefUnwindSafe for ProofType
impl Send for ProofType
impl Sync for ProofType
impl Unpin for ProofType
impl UnwindSafe for ProofType
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