Skip to main content

block_env_from_header

Function block_env_from_header 

Source
pub fn block_env_from_header<T: EvmTypesHost>(
    header: &impl BlockHeader,
) -> BlockEnv<T>
Expand description

Constructs a block environment from a block header.

A header without mixHash leaves prevrandao at zero.