Skip to main content

Module block_env

Module block_env 

Source
Expand description

The block environment recorded in fork caches and Anvil state dumps.

Its serde layout matches the block environment previously written by REVM, so existing fork caches and state dumps stay valid. The fork cache compares it to decide whether a cache matches.

Re-exportsยง

use alloy_eips::eip4844::BLOB_TX_MIN_BLOB_GASPRICE; ๐Ÿ”’
use alloy_eips::eip4844::fake_exponential; ๐Ÿ”’
use alloy_eips::eip7691::BLOB_GASPRICE_UPDATE_FRACTION_PECTRA; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’

Structsยง

BlobExcessGasAndPrice
Excess blob gas of a block and the blob gas price derived from it.
BlockEnv
A persisted block environment.