Struct sc_finality_grandpa::FinalityProofFragment[][src]

pub struct FinalityProofFragment<Header: HeaderT> {
    pub block: Header::Hash,
    pub justification: Vec<u8>,
    pub unknown_headers: Vec<Header>,
    pub authorities_proof: Option<StorageProof>,
}

Single fragment of proof-of-finality.

Finality for block B is proved by providing:

  1. the justification for the descendant block F;
  2. headers sub-chain (B; F] if B != F;
  3. proof of GRANDPA::authorities() if the set changes at block F.

Fields

block: Header::Hash

The hash of block F for which justification is provided.

justification: Vec<u8>

Justification of the block F.

unknown_headers: Vec<Header>

The set of headers in the range (U; F] that we believe are unknown to the caller. Ordered.

authorities_proof: Option<StorageProof>

Optional proof of execution of GRANDPA::authorities() at the block.

Trait Implementations

impl<Header: Clone + HeaderT> Clone for FinalityProofFragment<Header> where
    Header::Hash: Clone
[src]

impl<Header: Debug + HeaderT> Debug for FinalityProofFragment<Header> where
    Header::Hash: Debug
[src]

impl<Header: HeaderT> Decode for FinalityProofFragment<Header> where
    Header::Hash: Decode,
    Header::Hash: Decode,
    Vec<Header>: Decode,
    Vec<Header>: Decode
[src]

impl<Header: HeaderT> Encode for FinalityProofFragment<Header> where
    Header::Hash: Encode,
    Header::Hash: Encode,
    Vec<Header>: Encode,
    Vec<Header>: Encode
[src]

impl<Header: HeaderT> EncodeLike<FinalityProofFragment<Header>> for FinalityProofFragment<Header> where
    Header::Hash: Encode,
    Header::Hash: Encode,
    Vec<Header>: Encode,
    Vec<Header>: Encode
[src]

impl<Header: PartialEq + HeaderT> PartialEq<FinalityProofFragment<Header>> for FinalityProofFragment<Header> where
    Header::Hash: PartialEq
[src]

impl<Header: HeaderT> StructuralPartialEq for FinalityProofFragment<Header>[src]

Auto Trait Implementations

impl<Header> RefUnwindSafe for FinalityProofFragment<Header> where
    Header: RefUnwindSafe,
    <Header as Header>::Hash: RefUnwindSafe

impl<Header> Send for FinalityProofFragment<Header>

impl<Header> Sync for FinalityProofFragment<Header>

impl<Header> Unpin for FinalityProofFragment<Header> where
    Header: Unpin,
    <Header as Header>::Hash: Unpin

impl<Header> UnwindSafe for FinalityProofFragment<Header> where
    Header: UnwindSafe,
    <Header as Header>::Hash: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

impl<T> From<T> for T[src]

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]