ModulesΒ§
- request_
storage π
StructsΒ§
- Archive
State πGc - 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
apiover this backend, returning what consensus needs from it. - load_
accounts π - load_
accounts_ πat - Load
accountsfrom the snapshot atheightwhose root isroot, without reading the leaf or header atheight. - load_
chain_ πconfig - load_
frontier π - load_
frontier_ πat - Load the frontier from the snapshot at
heightwhose root isroot, without reading the header atheight. - load_
reward_ πmerkle_ tree_ v2 - Loads reward accounts for new reward merkle tree (V4).
- load_
v1_ πreward_ accounts - reconstruct_
state π - Reconstructs the
ValidatedStatefrom 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).