mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
Bump grandpa to 0.16.2 (#13622)
This commit is contained in:
@@ -234,15 +234,12 @@ impl<N: Codec> ConsensusLog<N> {
|
||||
/// GRANDPA happens when a voter votes on the same round (either at prevote or
|
||||
/// precommit stage) for different blocks. Proving is achieved by collecting the
|
||||
/// signed messages of conflicting votes.
|
||||
#[derive(Clone, Debug, Decode, Encode, PartialEq, TypeInfo)]
|
||||
#[derive(Clone, Debug, Decode, Encode, PartialEq, Eq, TypeInfo)]
|
||||
pub struct EquivocationProof<H, N> {
|
||||
set_id: SetId,
|
||||
equivocation: Equivocation<H, N>,
|
||||
}
|
||||
|
||||
// Don't bother the grandpa crate...
|
||||
impl<H: PartialEq, N: PartialEq> Eq for EquivocationProof<H, N> {}
|
||||
|
||||
impl<H, N> EquivocationProof<H, N> {
|
||||
/// Create a new `EquivocationProof` for the given set id and using the
|
||||
/// given equivocation as proof.
|
||||
@@ -271,7 +268,7 @@ impl<H, N> EquivocationProof<H, N> {
|
||||
|
||||
/// Wrapper object for GRANDPA equivocation proofs, useful for unifying prevote
|
||||
/// and precommit equivocations under a common type.
|
||||
#[derive(Clone, Debug, Decode, Encode, PartialEq, TypeInfo)]
|
||||
#[derive(Clone, Debug, Decode, Encode, PartialEq, Eq, TypeInfo)]
|
||||
pub enum Equivocation<H, N> {
|
||||
/// Proof of equivocation at prevote stage.
|
||||
Prevote(grandpa::Equivocation<AuthorityId, grandpa::Prevote<H, N>, AuthoritySignature>),
|
||||
|
||||
Reference in New Issue
Block a user