Skip to main content

BalIndexBumper

Type Alias BalIndexBumper 

Source
pub(crate) type BalIndexBumper<DB> = fn(&mut DB);
Expand description

Function pointer that bumps the BAL index in the DB.

Injected from ConfigureEvm::create_executor like the other DB callbacks so BbBlockExecutor can advance bal_index between sub-events of a segment boundary (post-N’s finish() and pre-N+1’s apply_pre_execution_changes()) without requiring additional trait bounds on DB. The renumbering scheme places these on consecutive bal_indexes so workers reading the BAL overlay see post-N’s writes via the strict less-than BalWrites::get semantic.

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