[−][src]Trait sp_runtime::traits::BlockIdTo
Something that can convert a BlockId
to a number or a hash.
Associated Types
Loading content...Required methods
pub fn to_hash(
&self,
block_id: &BlockId<Block>
) -> Result<Option<Block::Hash>, Self::Error>
[src]
&self,
block_id: &BlockId<Block>
) -> Result<Option<Block::Hash>, Self::Error>
Convert the given block_id
to the corresponding block hash.
pub fn to_number(
&self,
block_id: &BlockId<Block>
) -> Result<Option<NumberFor<Block>>, Self::Error>
[src]
&self,
block_id: &BlockId<Block>
) -> Result<Option<NumberFor<Block>>, Self::Error>
Convert the given block_id
to the corresponding block number.