referrerpolicy=no-referrer-when-downgrade
bp_header_chain

Trait FinalityProof

Source
pub trait FinalityProof<Hash, Number>:
    Clone
    + Send
    + Sync
    + Debug {
    // Required methods
    fn target_header_hash(&self) -> Hash;
    fn target_header_number(&self) -> Number;
}
Expand description

Abstract finality proof that is justifying block finality.

Required Methods§

Source

fn target_header_hash(&self) -> Hash

Return hash of header that this proof is generated for.

Source

fn target_header_number(&self) -> Number

Return number of header that this proof is generated for.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<H: HeaderT> FinalityProof<<H as Header>::Hash, <H as Header>::Number> for GrandpaJustification<H>