Skip to content
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

fix: store listen addresses as reported by identify #39

Merged
merged 3 commits into from
Jun 16, 2023

Conversation

dennis-tra
Copy link
Owner

When crawling the DHT I’m constantly issuing FIND_NODE RPCs. The response contains a list of peerIDs and also often the multi addresses. If the peer that returns the response is on an older version that doesn’t support, e.g., /quic-v1, the list of multi addresses won’t contain such addresses although the returned peer might actually support it.

The list I’m currently tracking with Nebula is the one I got handed by the other peer.

With this PR, I adjusted the crawler to await the Identify exchange and store the Multiaddresses that the peer actually reports to listen on.

@dennis-tra dennis-tra merged commit aacbbd9 into main Jun 16, 2023
3 checks passed
@dennis-tra dennis-tra deleted the fix-listen-addresses branch June 16, 2023 12:27
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.

None yet

1 participant