Skip to main content

BlockHashSeeder

Type Alias BlockHashSeeder 

Source
pub(crate) type BlockHashSeeder<DB> = fn(&mut DB, &[(u64, B256)]);
Expand description

Function pointer that seeds block hashes into the DB’s block hash cache.

Injected from ConfigureEvm::create_executor where the concrete State<DB> type is known, allowing BbBlockExecutor to reseed the ring buffer at segment boundaries without requiring additional trait bounds on DB.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes