Skip to main content

Module imp

Module imp 

Source

ModulesΒ§

request_storage πŸ”’

StructsΒ§

ArchiveStateGc πŸ”’
Prune archive state older than the light client contract’s retained history. Block merkle paths below the marker are rebuilt on request from newer snapshots; fee and reward state is gone.

FunctionsΒ§

fee_header_dependencies πŸ”’
Get the dependencies needed to apply the STF to the given list of headers.
get_leaf_from_proposal πŸ”’
init_query_module πŸ”’
Start the query module of api over this backend, returning what consensus needs from it.
load_accounts πŸ”’
load_accounts_at πŸ”’
Load accounts from the snapshot at height whose root is root, without reading the leaf or header at height.
load_chain_config πŸ”’
load_frontier πŸ”’
load_frontier_at πŸ”’
Load the frontier from the snapshot at height whose root is root, without reading the header at height.
load_reward_merkle_tree_v2 πŸ”’
Loads reward accounts for new reward merkle tree (V4).
load_v1_reward_accounts πŸ”’
reconstruct_state πŸ”’
Reconstructs the ValidatedState from a specific block height up to a given view.
reward_header_dependencies πŸ”’
Identifies all reward accounts required to replay the State Transition Function for the given leaf proposals. These accounts should be present in the Merkle tree before applying the STF to avoid recursive catchup (i.e., STF triggering another catchup).

Type AliasesΒ§

DataSource