Skip to content

Migrate from saorsa-node to ant-node 0.6#3

Merged
jacderida merged 3 commits intomainfrom
migrate-to-ant-node-0.6
Mar 25, 2026
Merged

Migrate from saorsa-node to ant-node 0.6#3
jacderida merged 3 commits intomainfrom
migrate-to-ant-node-0.6

Conversation

@mickvandijke
Copy link
Contributor

Summary

  • Replace saorsa-node git dependency with ant-node = "0.6" from crates.io — updates all imports (saorsa_node::ant_node::), binary resolution constants, comments, and test strings across 22 files.
  • Propagate peer addresses through send_and_await_chunk_responseNetwork::find_closest_peers now returns (PeerId, Vec<MultiAddr>) instead of discarding DHTNode.addresses, enabling faster P2P connections at all 4 call sites.

Test plan

  • cargo check passes
  • cargo fmt --all -- --check clean
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • E2E tests pass on CI

🤖 Generated with Claude Code

mickvandijke and others added 3 commits March 25, 2026 12:57
Migrate from the saorsa-node git dependency to the published ant-node
0.6 crate. Updates all imports, binary resolution constants, API call
sites (new peer_addrs parameter), and comments/strings throughout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Thread MultiAddr from DHT lookups through the entire request pipeline
so send_and_await_chunk_response can establish faster connections.
Network::find_closest_peers now returns (PeerId, Vec<MultiAddr>)
instead of discarding the addresses from DHTNode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simplify handler logic by replacing handle_message with try_handle_request. Add explicit handling for non-request messages and improve error messaging.
@jacderida jacderida merged commit cf0c730 into main Mar 25, 2026
10 of 12 checks passed
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.

2 participants