pub struct RewardProverStatus {Show 13 fields
pub launcher_id: HexId,
pub store_id: HexId,
pub root: HexId,
pub prover_state: ProverState,
pub prover_state_since: u64,
pub last_cycle_started_at: Option<u64>,
pub last_cycle_completed_at: Option<u64>,
pub next_cycle_due_at: Option<u64>,
pub last_entry_write_at: Option<u64>,
pub consecutive_cycle_failures: u32,
pub pending_entry_writes: u32,
pub observed_at: u64,
pub counters: ProverCounters,
}Expand description
One distributor’s prover-loop status — SPEC §2.3 / §2.4.
§No health boolean, no pre-computed staleness
This type carries no healthy/ok/up/running/stale field and no
seconds_since_last_run. SPEC §2.4: a wedged loop cannot report its own
wedging — a boolean the writer sets on every successful cycle reads true
forever after exactly the failure it exists to reveal, because the write
that would flip it never runs. The reader derives staleness itself from
last_cycle_completed_at /
next_cycle_due_at against
observed_at and its own clock. Contrast
GetRewardDistributorResult::entry_set_stale, which IS a boolean — it is
permitted there because it is computed from the singleton’s on-chain spend
history by the responder at read time, not self-reported by the writer this
type describes.
Fields§
§launcher_id: HexIdThe distributor singleton’s launcher id (64-hex).
store_id: HexIdThe backing store’s launcher id (64-hex).
root: HexIdThe store’s current generation root (64-hex).
prover_state: ProverStateThe loop’s current state.
prover_state_since: u64Unix seconds the loop entered prover_state.
last_cycle_started_at: Option<u64>Unix seconds the current/most recent cycle started, if any has run.
last_cycle_completed_at: Option<u64>Unix seconds the most recent cycle completed, if any has completed.
next_cycle_due_at: Option<u64>Unix seconds the next cycle is scheduled, if the loop is scheduling one.
last_entry_write_at: Option<u64>Unix seconds of the most recent entry-set write, if any.
consecutive_cycle_failures: u32Consecutive cycle failures (resets to 0 on a completed cycle).
pending_entry_writes: u32Entry writes queued but not yet committed.
observed_at: u64Unix seconds this status was assembled (the reader’s staleness anchor).
counters: ProverCountersThe loop’s running counters.
Trait Implementations§
Source§impl Clone for RewardProverStatus
impl Clone for RewardProverStatus
Source§fn clone(&self) -> RewardProverStatus
fn clone(&self) -> RewardProverStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more