bug(node): UDP gossip socket is never started by main.rs and NODE_BOOTSTRAP_PEERS is unimplemented

Open
#19 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start by reading src/main.rs and src/udp_gossip.rs to trace daemon startup and the existing UDP transport; then inspect docs/CONFIGURATION.md for NODE_BOOTSTRAP_PEERS and NODE_P2P_PORT, plus the isolated tests in tests/milestone6_test.rs. The issue calls for a gossip loop, periodic and on-change STH announcements, bootstrap joining, and an end-to-end test with two daemons exchanging heads over UDP without HTTP.

Written by the indexing model from the issue text.

Description

area::node effort::m impact::high priority::medium source::auto status::review type::bug

Context

Full-ecosystem production-readiness audit (2026-11-18). The UDP gossip transport exists and is tested in isolation, but the production binary never starts it. Milestone 7 (#7, status::review) claims a "live UDP gossip socket".

Findings (evidence)

  1. UdpGossipNode binds a real non-blocking UdpSocket (src/udp_gossip.rs:24-68) — but main.rs never constructs or binds it (no Udp reference in src/main.rs:1-31); the socket is only exercised by tests (tests/milestone6_test.rs:200-248).
  2. There is no gossip loop/thread, no periodic STH broadcast, and no bootstrap join: NODE_BOOTSTRAP_PEERS is documented (docs/CONFIGURATION.md:47-48) with zero matches in src/; NODE_P2P_PORT likewise.
  3. In runtime, gossip only arrives via the manual HTTP endpoint POST /v1/p2p/gossip (src/http_server.rs:178).

Impact

High: the decentralized mesh — a core product property — is pull-only and manual; nodes never announce or sync tree heads on their own.

Acceptance criteria

  • The daemon starts a gossip thread bound to NODE_P2P_LISTEN_ADDR on startup.
  • Periodic STH broadcast + on-change announcement, plus bootstrap join against NODE_BOOTSTRAP_PEERS.
  • E2E test: two running daemon instances exchange heads over UDP without HTTP involvement.
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.