Skip to main content

cache_block_hash

Function cache_block_hash 

Source
pub(crate) fn cache_block_hash(
    block_hashes: &mut U256Map<B256>,
    number: U256,
    hash: B256,
) -> U256
Expand description

Inserts a block hash, discards entries outside the EVM-visible cache, and returns its head.