fn block_hash_from_id(&self, id: &BlockId<Block>) -> Result<Option<Block::Hash>> {
		match *id {
			BlockId::Hash(h) => Ok(Some(h)),
			BlockId::Number(n) => self.hash(n),
		}
	}
/// Convert an arbitrary block ID into a block hash.
Convert an arbitrary block ID into a block hash.
Convert an arbitrary block ID into a block hash .
fn block_hash_from_id(&self, id: &BlockId<Block>) -> Result<Option<Block::Hash>> {
		match *id {
			BlockId::Hash(h) => Ok(Some(h)),
			BlockId::Number(n) => self.hash(n),
		}
	}
fn block_hash_from_id ( & self , id : & BlockId < Block > ) -> Result < Option < Block :: Hash > > { match * id { BlockId :: Hash ( h ) => Ok ( Some ( h ) ) , BlockId :: Number ( n ) => self . hash ( n ) , } }
Convert an arbitrary block ID into a block hash.
Convert an arbitrary block ID into a block hash .
&self
id
&BlockId<Block>
&self
id
&BlockId<Block>