Variable SWEEP_NAMESConst
SWEEP_NAMES: readonly [
"payouts",
"subscriptions",
"treasury",
"feeSweep",
"floatCoverage",
"checkpointVerify",
"checkpoint",
"relay",
"drainInbox",
"reconcile",
"promos",
"accrualDrain",
"reproof",
"orphans",
"archive",
"retention",
] = ...
Names of the background jobs run each cycle, and the sole definition
SweepNameis derived from.as const(not an enum) freezes the array and keeps the literal types.Array order is both run order and result order, and the order matters.
feeSweepfollowstreasurybecause one measures the surplus and the next moves it, so keep the pair adjacent.checkpointVerifyruns beforecheckpointso it re-checks the old sealed snapshot before a fresh one overwrites it; a just-taken snapshot always passes.drainInboxsits next to its outbound mirrorrelayand is never gated on the pause, so settlements keep flowing during a maintenance window.