pub struct UrlReconcileStatus {
pub auto_enabled: bool,
pub personal_day_offset_secs: Option<u32>,
pub next_check_unix_ms: Option<u64>,
pub last_observation: Option<UrlReconcileObservation>,
pub stale_bonds: u32,
pub auto_reconciled_this_epoch: bool,
}Expand description
This node’s URL-reconciliation standing — the automatic side of control.mirror.reconcile.
Embedded in MirrorBondStatesResult::Known, beside funding_wallet, for the same reason
epoch is carried there rather than left to a second call: this is a second OBSERVATION, and a
page of bond rows can be rendered and acted on before a follow-up call would return.
Fields§
§auto_enabled: boolIs the automatic daily detector (dig-node#570) armed on this node?
false on a node built before the daily detector existed, or one with it configured off —
a client MUST NOT infer either reason from false alone; it means only that nothing will
run reconcile without a manual control.mirror.reconcile call.
personal_day_offset_secs: Option<u32>This node’s personal offset into its day, in seconds, that the daily detector’s check time is jittered by — so a fleet of nodes does not all wake and reconcile at the same instant.
None when auto_enabled is false: an offset with nothing to
offset is not a fact about this node.
next_check_unix_ms: Option<u64>When the daily detector will next run, Unix milliseconds — or None on the same terms as
personal_day_offset_secs.
last_observation: Option<UrlReconcileObservation>What the daily detector (or the last manual call) most recently observed, or None if this
node has never observed its advertise state at all — a node just started, for instance.
stale_bonds: u32How many bonds, across the WHOLE set (never just this page), currently read
url_current: false — the count a client needs to
decide whether “reset mirrors” would do anything, without walking the whole
MirrorBondStatesResult::Known::entries page by page first.
auto_reconciled_this_epoch: boolHas the automatic pass already reconciled this node’s bonds during the CURRENT epoch?
Lets a client distinguish “nothing to do, autopilot already handled it” from “nothing to
do, everything was already current” — both read as stale_bonds: 0, and only one of them
means a manual reconcile this epoch would be redundant with what already ran.
Trait Implementations§
Source§impl Clone for UrlReconcileStatus
impl Clone for UrlReconcileStatus
Source§fn clone(&self) -> UrlReconcileStatus
fn clone(&self) -> UrlReconcileStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more