Struct finality_grandpa::Equivocation
source · pub struct Equivocation<Id, V, S> {
pub round_number: u64,
pub identity: Id,
pub first: (V, S),
pub second: (V, S),
}
Expand description
An equivocation (double-vote) in a given round.
Fields§
§round_number: u64
The round number equivocated in.
identity: Id
The identity of the equivocator.
first: (V, S)
The first vote in the equivocation.
second: (V, S)
The second vote in the equivocation.
Trait Implementations§
source§impl<Id: Clone, V: Clone, S: Clone> Clone for Equivocation<Id, V, S>
impl<Id: Clone, V: Clone, S: Clone> Clone for Equivocation<Id, V, S>
source§fn clone(&self) -> Equivocation<Id, V, S>
fn clone(&self) -> Equivocation<Id, V, S>
Returns a copy 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<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq<Equivocation<Id, V, S>> for Equivocation<Id, V, S>
impl<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq<Equivocation<Id, V, S>> for Equivocation<Id, V, S>
source§fn eq(&self, other: &Equivocation<Id, V, S>) -> bool
fn eq(&self, other: &Equivocation<Id, V, S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.