Skip to main content

Module unknown

Module unknown 

Source
Expand description

What the network uses that this build does not know yet.

Astraea decodes XRPL binary with the field and type tables of one xrpld release (definitions.json) and lists the amendments of that release (crate::amendments). A newer xrpld can bring a field, a transaction or object type, a result code or an amendment that is not in them. The loader still stores such a ledger as it came, byte for byte, and hashes and proofs stay valid; what it cannot do is turn the new parts into JSON. This module finds them, so the loader can report them (log and metrics) and a release with new tables can follow.

Two checks:

  • scan: every transaction, its metadata and every changed object of a ledger, walked field by field, nested objects and arrays included;
  • amendments: the Amendments object, for amendments enabled or with a validator majority that the table does not have. A majority holds for two weeks before the amendment is enabled, so this is the early warning.

Functionsยง

amendments
Amendments in the Amendments object (its binary) that the table does not have: enabled ones, and ones with a validator majority, as hex IDs.
amendments_key
Key of the Amendments object (a singleton).
scan
What a ledger holds that the definitions do not know, one line per kind and place, at most MAX_FINDINGS. Empty for a ledger fully understood.