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

Skip peers using non-std ports before adding to queue #20

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

conradoplg
Copy link
Contributor

In #17 we avoided connecting to peers using flux ports. However the crawl was too slow (~13 hours?). I added the skip logic to when the addresses are returned by peers, before adding them to the queue, which makes crawling much faster (~5 min). (Not totally sure why. Are Go channels that slow? 🤔 )

I tried block those addresses, but thinking about it, it does not seem to be the correct approach, since zcashd nodes can still conect to flux peers (i.e. just because a peer return peers using flux ports, it does not mean that peer is bad).

@conradoplg conradoplg requested a review from teor2345 June 13, 2022 22:16
Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for diagnosing and fixing this!

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