Skip to main content

Module state

Module state 

Source
Expand description

Client-side state used to implement light client fetching and verification.

Structsยง

Genesis
Initial state for a LightClient.
LightClient
Client-side state required to implement the light client interface.
LightClientOptions

Enumsยง

CacheLeaves ๐Ÿ”’
Whether a range fetch writes the leaves it chains to a proven leaf into the cache.

Constantsยง

MAX_FINALIZED_HINT_DISTANCE ๐Ÿ”’
Maximum distance between a requested leaf and the finalized hint sent to the server. Servers reject or ignore distant hints; beyond this we omit the hint and verify against a quorum.

Functionsยง

header_matches_id ๐Ÿ”’
leaf_matches_id ๐Ÿ”’
stake_table_state_to_quorum ๐Ÿ”’