pub async fn load_current_snapshot(
store: &dyn PeerStorage,
db: &str,
) -> Result<Option<Db>, SnapshotError>Expand description
Loads the newest published current-state snapshot for db.
None means the database has not published an index yet, in which case a
peer must subscribe from basis zero. Immutable segment reads can race with
later publications safely because the root selects a complete snapshot.
ยงErrors
Returns SnapshotError for corrupt or unsupported published state.