Skip to main content

seed_state_block_hashes

Function seed_state_block_hashes 

Source
fn seed_state_block_hashes<DB>(
    state: &mut &mut State<DB>,
    hashes: &[(u64, B256)],
)
Expand description

Reseeds State::block_hashes with the given hashes.

This is used as a BlockHashSeeder callback, injected into BbBlockExecutor from ConfigureEvm::create_executor where the concrete State<DB> type is known. At each segment boundary the executor calls this to populate the ring buffer with the 256 block hashes relevant to the new segment’s block number window.