Skip to main content

refuse_unqualified_annotated_replay

Function refuse_unqualified_annotated_replay 

Source
pub fn refuse_unqualified_annotated_replay(
    config: &Config,
    backend: Backend,
) -> Result<(), UnqualifiedAnnotatedReplay>
Expand description

Refuse to replay a callback-annotated priority history where its row ends cannot be honored: they are actual callback endpoints at exact RCB counts, guarded one RCB past each. The requirements are Config::annotated_priority_replay_unqualified’s, judged here on the command line’s configuration with the selected backend’s capabilities, so the refusal comes before input is read and names the backend. Without them a replay would neither reach nor bound those endpoints, and silently falling back to the legacy expiry would replay the wrong schedule. A record without checkpoints keeps its existing admission; this check never rewrites the configuration.