chore(node): gossip daemon hardening (jittered broadcast, bounded mesh targets, UDP metrics)

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start with the broadcast loop in src/gossip_daemon.rs:131-189 and inspect how bootstrap and mesh multiaddrs become UDP targets. Add jitter while retaining on-change announcements, cap target fan-out, and expose per-target failures as a metric; use tests/gossip_daemon_test.rs to verify the behavior. Done means the daemon broadcasts with jitter, bounds its targets, and reports failures through /health or /metrics.

Written by the indexing model from the issue text.

Description

area::node effort::s impact::low priority::low source::auto status::review type::feature

Follow-up residual from node#19 verification (2026-11-20, develop a187fb1).

Context

The gossip daemon (src/gossip_daemon.rs:131-189) broadcasts on a fixed 5s interval with no jitter, targets every bootstrap + mesh multiaddr unbounded, and exposes no UDP metrics (sends/failures/ingest-rejects only appear as stderr logs).

Work

  • Jittered periodic broadcast (e.g. 5s +/- 20%) + on-change announce retained.
  • Bounded/capped UDP target fan-out with per-target failure accounting surfaced in /health or /metrics (counter, not log-only).
  • Unit/integration test in tests/gossip_daemon_test.rs.

Effort: S. Priority low: current fixed-interval daemon satisfies the #19 acceptance criteria.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
4m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from alfonsodg/sonaraim-node

All issues in alfonsodg/sonaraim-node

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.