Skip to content

Conversation

@ayush18pop
Copy link

Title

dial: fallback to peer routing when all multiaddrs fail

Description

When dialing a peer using one or more multiaddrs that share a peer id, and all
dial attempts fail, perform a single peer routing lookup to discover any updated
addresses and retry dialing.

Adds a test to verify the routing fallback behavior and ensures the lookup is
only performed once.

Fixes #3160

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@ayush18pop ayush18pop requested a review from a team as a code owner December 19, 2025 22:06
@ayush18pop ayush18pop changed the title dial: fallback to peer routing when all multiaddrs fail feat: fallback to peer routing when all multiaddrs fail Dec 20, 2025
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.

Verify dialing behavior

1 participant