Skip to main content

SUPERSEDED_RETENTION

Constant SUPERSEDED_RETENTION 

Source
pub const SUPERSEDED_RETENTION: Duration;
Expand description

How long a replaced record is kept after an update, in memory.

A storage audit binds the record a node holds in its first round and asks for it in the second (ADR-0016). An owner updating the pointer between the two would otherwise fail the honest node that took the update, so every record an update replaces stays servable, however many updates follow it (ADR-0019), for longer than the slowest audit takes with the default configuration: a round 1 over the largest subtree an auditor will wait for, then the session its round 2 must arrive within. Round 1 can read a pointer at its very start and take that long to finish, so the time counts from the read, not from the session.