clementine_core

Module metrics

Source
Expand description

This module includes helper functions to get the blockchain synchronization status of the entity. The entity tracks on-chain transactions for many purposes (TxSender, FinalizedBlockFetcher, HCP) and takes action (header chain proving, payout, disprove, L2 state sync, etc.) SyncStatus tracks the latest processed block heights for each of these tasks.

Structs§

  • The L1 sync status metrics for an entity. This is used by the aggregator to publish external entity metrics. The scope will be set to the EntityId + “_l1_sync_status”, which will be displayed as Operator(abcdef123...)_l1_sync_status or Verifier(abcdef123...)_l1_sync_status where the XOnlyPublicKey’s first 10 characters are displayed, cf. crate::aggregator::OperatorId and crate::aggregator::VerifierId.
  • A struct containing the current sync status of the entity.
  • The L1 sync status metrics for the currently running entity. (operator/verifier)

Constants§

Statics§

  • The L1 sync status metrics static for the currently running entity. (operator/verifier)

Traits§

  • Extension trait on named entities who synchronize to the L1 data, to retrieve their L1 sync status.

Functions§