HeaderStoreReader

Trait HeaderStoreReader 

Source
pub trait HeaderStoreReader {
    // Required methods
    fn get_daa_score(&self, hash: Hash) -> Result<u64, StoreError>;
    fn get_blue_score(&self, hash: Hash) -> Result<u64, StoreError>;
    fn get_timestamp(&self, hash: Hash) -> Result<u64, StoreError>;
    fn get_bits(&self, hash: Hash) -> Result<u32, StoreError>;
    fn get_header(&self, hash: Hash) -> Result<Arc<Header>, StoreError>;
    fn get_header_with_block_level(
        &self,
        hash: Hash,
    ) -> Result<HeaderWithBlockLevel, StoreError>;
    fn get_compact_header_data(
        &self,
        hash: Hash,
    ) -> Result<CompactHeaderData, StoreError>;
}

Required Methods§

Implementors§