Skip to main content

BalIndexReader

Type Alias BalIndexReader 

Source
pub(crate) type BalIndexReader<DB> = fn(&DB) -> u64;
Expand description

Function pointer that reads the BAL index from the DB.

Injected from ConfigureEvm::create_executor where the concrete State<DB> type is known. BbBlockExecutor calls this lazily on first use to decide which segment to start at: 0 means canonical execution from segment 0, n > 0 means a BAL worker that runs only the n-th transaction (in whichever segment contains it).

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