Skip to content

Conversation

@RolandSherwin
Copy link
Member

@RolandSherwin RolandSherwin commented Oct 22, 2025

  • removes the relay client & server behaviour from the node and client
  • remove the --relay flag from antctl
  • keep the --relay flag inside antnode as a no-op to not break older service definition files
  • remove Home Network option from LP

}

/// 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

Suspicious comment
Copy link
Member

@maqi maqi left a 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.

grumbach and others added 8 commits October 23, 2025 10:58
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
@RolandSherwin RolandSherwin changed the title Disable relay feat: remove relay functionality from autonomi network Oct 23, 2025
@RolandSherwin RolandSherwin changed the base branch from main to reachability October 31, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants