Skip to main content

cache_cpsb_on_local

Function cache_cpsb_on_local 

Source
pub fn cache_cpsb_on_local<CTX: ContextTr>(ctx: &mut CTX)
Expand description

Caches the EIP-8037 cost_per_state_byte on the local context for the current transaction, honoring cfg.cpsb_override.

Called at the start of every top-level execution entry point so that Host::cpsb becomes a single field read instead of a recomputation.