Expand description
Entry point for bulk-loading the RpcStoreSchema’s
derived-index CFs from a [RestoreSource].
Registers the three live-object-derivable index pipelines
(ObjectByOwner, ObjectByType, Balance) plus the
ObjectVersionByCheckpoint and PackageVersions floor rows —
and, when the caller’s RestoreLayer opts in, the raw
Objects CF — against a single [RestoreDriver] and returns a
Service driving the restore through to completion. Once
finished, every registered
pipeline’s __restore row is Complete and its __watermark
row is set to the source’s target, so the regular
Indexer::add_pipelines path will accept them for tip
indexing.
Restoration is run separately from tip indexing — open the
database, call restore_indexes to populate the indexes,
then construct an Indexer over the same store to start
tip-following.
Constants§
- HISTORY_
COHORT - The embedded fullnode’s history cohort: the pipelines seeded to
the lowest available checkpoint
Land backfilled upward from the perpetual store, then followed live. - LIVE_
COHORT - The embedded fullnode’s live cohort: the pipelines that
restore_indexesbulk-loads and that are restored to the perpetual store’s tipT, then follow live from there. They are bounded by the live object set, so a snapshot restore reproduces them exactly.
Functions§
- floor_
unrestored_ pipelines - After
restore_indexesreturns, prime the framework state of every pipeline that the restore did not cover so tip indexing resumes fromtarget_watermark.checkpoint_hi_inclusive + 1across the board instead of replaying from genesis for the raw-chain-data and bitmap pipelines. - restore_
indexes - Register every
Restore-implementing pipeline opted in bylayeron a [RestoreDriver] bound todb/schemaandsource, then run the resultingService. - seed_
current_ epoch_ start - Stage a start record for the epoch reflected by the on-chain
SuiSystemStateinobjects, keyed by that epoch. - seed_
history_ cohort - Seed the framework state for the embedded fullnode’s
HISTORY_COHORTafterrestore_indexeshas bulk-loaded theLIVE_COHORT.