Skip to content

fix: store listen addresses as reported by identify#39

Merged
dennis-tra merged 3 commits into
mainfrom
fix-listen-addresses
Jun 16, 2023
Merged

fix: store listen addresses as reported by identify#39
dennis-tra merged 3 commits into
mainfrom
fix-listen-addresses

Conversation

@dennis-tra
Copy link
Copy Markdown
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 force-pushed the fix-listen-addresses branch from 94a4f03 to 66bf58f Compare June 16, 2023 11:28
@dennis-tra dennis-tra merged commit aacbbd9 into main Jun 16, 2023
@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.

1 participant