Prefer MASQUE relay addresses for client P2P#52
Merged
Conversation
find_closest_peers returned raw DHTNode::addresses where relay addresses were last. All downstream consumers (chunk store, quote collection) then tried unreachable NATted addresses first. Switch to addresses_by_priority() so relay addresses are tried first. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…akdown Upgraded log messages to include breakdown of response types (successful, already stored, and failed), improving debugging and analysis of quote collection behavior. Updated `debug` to `info` for consistent logging level.
Enhanced tracing setup to respect RUST_LOG environment variable when verbose flags are not provided, ensuring more flexible logging configuration. Simplified conditional checks to streamline logic.
Clients don't host data and their routing table exists only to find peers. Strict per-IP / per-subnet diversity caps would silently drop legitimate testnet peers that share an IP or /24, with no benefit since clients aren't a Sybil target. Apply IPDiversityConfig::permissive unconditionally in both ant-cli's create_client_node_raw and ant-core's Network::new. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…dencies Switched `ant-node` to track a Git branch and rebased versions for `saorsa-core` and `saorsa-transport`. Incremented relevant package versions to maintain compatibility.
Upgraded multiple dependencies for compatibility, including `rand` to 0.8.6, `tokio` to 1.52.1, `openssl` to 0.10.78, and more. Added new packages (`konst`, `symlink`, and `wit-bindgen`), and updated Git source revisions for `ant-node`, `saorsa-core`, and `saorsa-transport`.
…upgrade ruint to 1.18.0
jacderida
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
find_closest_peersso chunk store / quote collection try reachable relay addresses first instead of unreachable NATted addresses.IPDiversityConfig::permissiveunconditionally to client P2P nodes (bothant-cliandant-core::Network::new) — clients aren't Sybil targets and diversity caps were silently dropping legitimate testnet peers.info.RUST_LOGwhen verbose flags are unset.ant-nodeto a Git-tracked branch; rebasedsaorsa-core/saorsa-transport.Test plan
cargo check --all-targetscargo clippy --all-targets --all-features -- -D warningscargo test --all🤖 Generated with Claude Code