Trait polkadot_service::HeaderMetadata
source · pub trait HeaderMetadata<Block>where
Block: Block,{
type Error: Error;
// Required methods
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.