[][src]Trait sp_blockchain::HeaderMetadata

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

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

Associated Types

type Error[src]

Error used in case the header metadata is not found.

Loading content...

Required methods

pub fn header_metadata(
    &self,
    hash: Block::Hash
) -> Result<CachedHeaderMetadata<Block>, Self::Error>
[src]

pub fn insert_header_metadata(
    &self,
    hash: Block::Hash,
    header_metadata: CachedHeaderMetadata<Block>
)
[src]

pub fn remove_header_metadata(&self, hash: Block::Hash)[src]

Loading content...

Implementors

Loading content...