Function jormungandr::network::fetch_block
source · pub async fn fetch_block(
config: &Configuration,
hash: HeaderHash
) -> Result<Block, FetchBlockError>
Expand description
Queries the trusted peers for a block identified with the hash. The calling thread is blocked until the block is retrieved. This function is called during blockchain initialization to retrieve the genesis block.