pub fn id(&self, id: BlockId<Block>) -> Option<Block::Hash> {
		match id {
			BlockId::Hash(h) => Some(h),
			BlockId::Number(n) => self.storage.read().hashes.get(&n).cloned(),
		}
	}
/// Get header hash of given block.
Get header hash of given block.
Get header hash of given block .
pub fn id(&self, id: BlockId<Block>) -> Option<Block::Hash> {
		match id {
			BlockId::Hash(h) => Some(h),
			BlockId::Number(n) => self.storage.read().hashes.get(&n).cloned(),
		}
	}
pub fn id ( & self , id : BlockId < Block > ) -> Option < Block :: Hash > { match id { BlockId :: Hash ( h ) => Some ( h ) , BlockId :: Number ( n ) => self . storage . read ( ) . hashes . get ( & n ) . cloned ( ) , } }
Get header hash of given block.
Get header hash of given block .
&self
id
BlockId<Block>
&self
id
BlockId<Block>