pub trait HeaderMetadata<Block>where
    Block: Block,
{ type Error: Error; fn header_metadata(
        &self,
        hash: <Block as Block>::Hash
    ) -> Result<CachedHeaderMetadata<Block>, Self::Error>; fn insert_header_metadata(
        &self,
        hash: <Block as Block>::Hash,
        header_metadata: CachedHeaderMetadata<Block>
    ); fn remove_header_metadata(&self, hash: <Block as Block>::Hash); }
Expand description

Handles header metadata: hash, number, parent hash, etc.

Required Associated Types§

Error used in case the header metadata is not found.

Required Methods§

Implementations on Foreign Types§

Implementors§