Skip to main content

block_id_to_hash_or_height

Function block_id_to_hash_or_height 

Source
fn block_id_to_hash_or_height(block_id: BlockId) -> Result<HashOrHeight, Status>
Expand description

Converts a BlockId into a HashOrHeight, using the hash if it is present and the height otherwise.