[][src]Type Definition evmc_sys::evmc_get_block_hash_fn

type evmc_get_block_hash_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, number: i64) -> evmc_bytes32>;

Get block hash callback function.

This callback function is used by a VM to query the hash of the header of the given block. If the information about the requested block is not available, then this is signalled by returning null bytes.

@param context The pointer to the Host execution context. @param number The block number. @return The block hash or null bytes if the information about the block is not available.