Skip to content

Conversation

feliam
Copy link
Contributor

@feliam feliam commented Jan 20, 2025

  • Metric is a separated entity that gets updated similar to how metrics are updated
    checks are calculated based on pre/post states:
    pub async fn run(&self, pre_state: &State, post_state: &State) -
    metrics are updated the same way:
    pub fn update(&self, pre_state: &State, post_state: &State)
  • A single current_state is maintained in the mainloop
    let current_state = Arc::new(RwLock::new(state));
  • Initial height from config or tip
  • States attempt to be at the blockchain latest height (Expects blocks are consecutive (can not skip blocks))
  • lru of blocks disabled.
  • Added metric that checks max estimated block time
  • Metrics are split in files

@feliam feliam marked this pull request as ready for review January 21, 2025 14:24
@feliam feliam merged commit 6a2ccfa into main Jan 22, 2025
1 check passed
@feliam feliam deleted the dev/metrics branch January 22, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant