Skip to content

Fix gossip peer discovery through entrypoints - #277

Open
NeerajGodiyal wants to merge 3 commits into
alpenglow-devfrom
feature/gossip-peer-discovery
Open

NeerajGodiyal wants to merge 3 commits into
alpenglow-devfrom
feature/gossip-peer-discovery

Conversation

@NeerajGodiyal

Copy link
Copy Markdown
Collaborator

Changes

Relay signed contact records so nodes joining through the same Mithril entrypoint can discover each other and continue exchanging gossip after it stops.

Reject older contact updates, remove withdrawn endpoints, and continue sending to other peers when a UDP send fails.

Testing

Adds regression tests and networking test coverage to the existing CI workflow. Verified peer discovery and continued gossip after entrypoint shutdown using actual Mithril processes on Hetzner.

Forward verified, signed ContactInfo records so nodes joining through a Mithril entrypoint can discover each other.

Bound relay storage and packet sizes, preserve contact update ordering, remove withdrawn service endpoints, and continue sending after individual UDP failures.
Cover signed-record preservation, stale and invalid contacts, relay limits, endpoint withdrawal, peer restart, and UDP send failures. Add packet fuzz coverage and run networking race tests in CI.
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