Expand description
A query node that follows the chain through the light client instead of taking part in consensus. Verified blocks reach the query API through the same sink a validator hands its decides to, so every API module serves them unchanged.
The light client’s root of trust is its genesis stake table. Unless
FollowerOptions::light_client_genesis pins one, it is derived from the network config, and
a follower starting on an empty database fetches that config from its config peers, which
default to the very upstreams it verifies. Pin the genesis wherever the upstreams are not
trusted on first start.
Structs§
- Follower 🔒
- Follower
Consensus 🔒 - Behind an
ArcinFollowerHandle, as the API’sConsensusSource. - Follower
Context - Owns the follower’s tasks: dropping it stops following unless it was
detached. Not
Clone, so nothing else can stop the follower; the API holds aFollowerHandle. - Follower
Handle - What the API holds. Clones share the follower’s state and own nothing that stops it; a
FollowerContextdoes that. - Follower
Options - Follower
Params - Verified
Block 🔒
Traits§
- Chain
Source 🔒 - Where a follower reads the chain from.
Functions§
- connect_
light_ 🔒client - init_
follower_ node - The follow loop is running when this returns;
FollowerContext::newtakes over stopping it. - init_
with_ 🔒source