Skip to main content

Module quorum

Module quorum 

Source
Expand description

Quorum check: whether a ledger is confirmed by the validators that a given policy trusts.

This is a separate claim from “the signature is valid”. It is always relative to a trust policy (which UNL publishers we accept, how many lists must contain a key, who is temporarily disabled via the Negative UNL) and means nothing without that policy being stated.

The calculation follows xrpld (ValidatorList::calculateQuorum): 80% of the effective validators (the UNL minus those disabled by the Negative UNL), but no less than 60% of the full UNL. It is computed in float, as there: rounding at the boundaries depends on it.

What the check does not claim. If a trusted validator is not found among the signers, that means “we did not see its validation”, not “it did not vote”: a collector can miss validations.

Structs§

Assessment
Decision
The decision for a ledger hash: the time window, the policies and the outcome for each.
Observed
A validation for one ledger, with its signature already verified.
Policy
The trust policy for a specific ledger.
PolicySet
The policies that could have been in effect, and the publishers that have no list in effect for that time.
PublishedList
One publisher list, with its signature already verified.

Functions§

assess
decide
Whether hash is confirmed under the verifier’s policy. One rule shared by offline bundle verification and confirmation at load time.
default_threshold
How many lists must contain a key if no threshold is set. As in xrpld: with one or two publishers one list is enough, otherwise a majority.
policies_between
All policies that could have been in effect at any moment of the window [from, to] (seconds since the XRPL epoch): for each publisher, the lists signed under its latest manifest and in effect within the window. Which of them the network used cannot be known without a signed publication time, so every combination is returned, and confirmation must hold for each one.
quorum
The xrpld quorum for a UNL of size unl with effective effective validators.

Type Aliases§

Key
A key: the raw 33 bytes of a public key.