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

Do not add old nodes. #64

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Do not add old nodes. #64

merged 1 commit into from
Feb 16, 2024

Conversation

dajohi
Copy link
Member

@dajohi dajohi commented Feb 15, 2024

No description provided.

@@ -96,6 +96,9 @@ func (c *crawler) testPeer(ctx context.Context, ip netip.AddrPort) {
// Wait for the verack message or timeout in case of failure.
select {
case <-verack:
if p.ProtocolVersion() < wire.RemoveRejectVersion {
Copy link
Member

Choose a reason for hiding this comment

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

Seems OK. This protocol version was released in 1.7.0, nodes running code older than that are forked off the network and not worth connecting to.

@dajohi dajohi merged commit 7308a71 into decred:master Feb 16, 2024
2 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.

3 participants