Skip to main content

Module bal

Module bal 

Source
Expand description

Validates and caches BAL post-state, and prepares transaction forksโ€™ parent-block BALs.

Functionsยง

cache_bal
Inserts a validated BALโ€™s post-state into its selected remote cache, retaining existing values.
cache_bal_accounts ๐Ÿ”’
Inserts complete account post-states, retaining existing accounts, and returns the added count.
cache_bal_storage ๐Ÿ”’
Inserts final slot writes, retaining cached values and leaving read-only slots unknown.
eligible_source ๐Ÿ”’
immutable_source ๐Ÿ”’
prepare ๐Ÿ”’
Fetches and validates a parent BAL without mutating a database or propagating BAL failures.
validate_bal
Validates the entire BAL before any values can enter the cache.