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§
sourcefn best_finalized() -> H
fn best_finalized() -> H
Get the best finalized header known to the header chain.
Get the best authority set known to the header chain.
sourcefn append_header(header: H) -> Result<(), E>
fn append_header(header: H) -> Result<(), E>
Write a header finalized by GRANDPA to the underlying pallet storage.