pub enum ProverState {
Idle,
Running,
LocalCopyMissing,
ChainSourceUnavailable,
Unfunded,
FeeBudgetExhausted,
EntrySetFull,
Paused,
Stopped,
}Expand description
The always-on reward prover loop’s state — SPEC §2.3, the closed set.
#[non_exhaustive]-equivalent by convention rather than attribute (the SPEC
pins this to an exact nine-member set; a variant needs a SPEC amendment, not
a semver-additive appendix). Deserialization is fail-closed: no
#[serde(other)] catch-all and no Default impl, so an unknown wire string
(a newer node, a typo) is a hard parse error rather than a silently-coerced
state.
Variants§
Idle
No distributor assigned; the loop is parked.
Running
A cycle is in progress.
LocalCopyMissing
The local capsule/store copy this cycle needs is missing.
The chain source (full node / peer) is unreachable this cycle.
Unfunded
The distributor is unfunded — no reserve to pay a cycle out of.
FeeBudgetExhausted
The fee budget for entry-set writes is exhausted for this cycle.
EntrySetFull
The entry set is at capacity; no further entries can be added.
Paused
Paused by an operator action.
Stopped
Stopped; the loop will not run again without an explicit restart.
Trait Implementations§
Source§impl Clone for ProverState
impl Clone for ProverState
Source§fn clone(&self) -> ProverState
fn clone(&self) -> ProverState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more