Skip to content

anounciness metric for peer selection#53

Draft
coot wants to merge 2 commits intomainfrom
coot/sig-metric
Draft

anounciness metric for peer selection#53
coot wants to merge 2 commits intomainfrom
coot/sig-metric

Conversation

@coot
Copy link
Copy Markdown
Contributor

@coot coot commented Apr 21, 2026

List of changes

This PR introduces announcyness metric for peer selection which is used to
decide which hot peers we should demote.

For each peer we count how many valid signatures were announced before any
other peer announced it. This is implemented into two steps: first we account
at which time a peer announce a given signature id, then once we receive the
corresponding signature, and it turns out to be valid, we give a score of one
to the peer that announced it first. Each score is kept for an hour (the same
as churn rate).

Checklist

  • related issue
  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

@github-project-automation github-project-automation Bot moved this to In Progress in Ouroboros Network Apr 21, 2026
@coot coot linked an issue Apr 21, 2026 that may be closed by this pull request
@coot coot force-pushed the coot/sig-metric branch from 05b9cf9 to 6a60f59 Compare April 21, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Churn metric

1 participant