Skip to main content

current_lists

Function current_lists 

Source
pub fn current_lists(
    lists: &mut Vec<PublishedList>,
    publisher_manifests: &[Manifest],
    problems: &mut Vec<String>,
)
Expand description

Keeps only lists signed by the publisher’s current key: for each publisher, the manifest with the highest sequence among all those presented (from publisher responses and from the bundle) is taken. If it is revoked, the publisher keeps no lists at all; if the key was rotated, lists signed with the previous key are dropped. A publisher left without a list makes the policy incomplete further on.

This is how a live xrpld behaves: after a key rotation old lists are not accepted even for old ledgers, so checking such bundles fails outright instead of guessing when the old key was still good.