-
Notifications
You must be signed in to change notification settings - Fork 77
feat: remove relay functionality from autonomi network #3262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: reachability
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| /// The shared recorders that are used to record metrics. | ||
| #[allow(dead_code)] // TODO: Remove this once we have removed all the deprecated metrics related to relay. |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better got this PR having its own PR descriptions to cover what changed and what aimed for.
Also, seems there is some outdated stuff in the PR description of PR 3116.
For example, it says:
- ✅ Remove relay CLI options (--relay flag)
BUT, in the PR 3262 code change, the flag remains, though it does nothing.
Better to update to sync.
Put in Request Changes, as it needs sepecific testnet runs to confirm the work, before got merged in.
This commit systematically removes libp2p relay functionality from the Autonomi network, transitioning to a network architecture that relies solely on direct QUIC connections and UPnP for NAT traversal. Changes include: - Remove "relay" feature from libp2p dependencies in Cargo.toml - Remove relay_client field from NetworkConfig and NodeBuilder - Simplify transport layer to use only QUIC (remove relay transport) - Remove relay behaviors (relay_client, relay_server) from NodeBehaviour - Remove RelayManager and connected_relay_clients from SwarmDriver - Remove all relay event handling from swarm events - Remove relay-specific metrics and monitoring - Delete relay_manager.rs and relay_client.rs metrics files - Remove relay CLI options and Python bindings - Update UPnP to be enabled by default for non-local nodes - Remove relay peer tracking and related statistics - Simplify identify event handling to remove relay address crafting This is a breaking change that simplifies the codebase and improves direct peer-to-peer communication by removing relay bottlenecks. Nodes behind restrictive NATs will need to rely on UPnP for connectivity. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- This is a non-breaking change as the NodeRegistry is unaffected
da1ce94 to
fa009a6
Compare
relay client & server behaviourfrom the node and client--relayflag from antctl--relayflag inside antnode as a no-op to not break older service definition files