pub enum MarkerAnchorReconcile {
InStep,
RetiredOrphans(u64),
RemintedDeficit(u64),
Refused {
census: u64,
stored: u64,
},
}Expand description
Outcome of one marker-anchor ledger reconciliation.
The two ledgers an admission cross-checks are the frontier CENSUS (marker records whose owning participant is active with a cursor short of the marker, plus markers still pending as immutable sequence candidates) and the STORED count in closure accounting. Reconciliation is census-authoritative: the census is derived from rows that are present, the stored count from arithmetic that a lost row can no longer correct.
A refused repair is its own arm rather than a zero count. The two are operationally different — one says the ledgers agree, the other says they disagree in a way this repair may not touch — and collapsing them would publish an in-step ledger where a corruption stands.
Variants§
InStep
Census and stored accounting already agree; nothing moved.
RetiredOrphans(u64)
Stored accounting held anchors the census can no longer derive; exactly that excess was retired.
RemintedDeficit(u64)
The census derives anchors stored accounting has lost; exactly that deficit was re-minted.
Refused
The ledgers disagree and ClosureAccounting::try_new refused the
repair. State is unchanged, in both directions, exactly as before.
Implementations§
Source§impl MarkerAnchorReconcile
impl MarkerAnchorReconcile
Sourcepub const fn reconciled(self) -> u64
pub const fn reconciled(self) -> u64
Returns how many anchors moved, in either direction.
Trait Implementations§
Source§impl Clone for MarkerAnchorReconcile
impl Clone for MarkerAnchorReconcile
Source§fn clone(&self) -> MarkerAnchorReconcile
fn clone(&self) -> MarkerAnchorReconcile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more