Expand description
Collector of signed UNL lists.
The quorum check needs the trust policy as of the ledgerβs date, but list publishers (vl.ripple.com, unl.xrplf.org) only serve the current version. Past versions cannot be obtained anywhere, so, as with validations, we build up the list history ourselves, starting from day one.
What it does:
- polls each publisher every
--interval-secs; - stores each new response byte for byte: it contains the publisherβs signature and manifest, so authenticity can be checked later, without us;
- writes every poll, successful or not, as a line in
observations.jsonl: when we looked, what the server answered, which list sequences were in the response. This is our evidence of when a list was in effect; the list itself does not say; - if a publisherβs list sequence jumped by more than one, the observation marks it: we never saw the intermediate versions.
Layout: <data-dir>/<publisher>/<sequence>-<hash>.json for raw responses,
<data-dir>/observations.jsonl for the poll log.
StructsΒ§
- Args π
- Fetched π
- List
Info π - Seen π
- State kept between polls: the last list sequence per publisher key, so that skipped versions can be noticed.
- Site π
- Summary π
- What is inside a publisher response: the key and the list sequences. The parse is only for the log; the response is stored whole, not the parsed form.
ConstantsΒ§
- MAX_
BODY π - A publisher response is tens of kilobytes; anything over a megabyte is not a list.
FunctionsΒ§
- append_
line π - fetch π
- main π
- parse_
site π - poll π
- run π
- summarize π