pub trait HeaderChain<H, E> {
    // Required methods
    fn best_finalized() -> H;
    fn authority_set() -> AuthoritySet;
    fn append_header(header: H) -> Result<(), E>;
}
Expand description

A trait for pallets which want to keep track of finalized headers from a bridged chain.

Required Methods§

source

fn best_finalized() -> H

Get the best finalized header known to the header chain.

source

fn authority_set() -> AuthoritySet

Get the best authority set known to the header chain.

source

fn append_header(header: H) -> Result<(), E>

Write a header finalized by GRANDPA to the underlying pallet storage.

Implementations on Foreign Types§

source§

impl<H: Default, E> HeaderChain<H, E> for ()

Implementors§