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

chaincfg: Introduce new type DNSSeed #961

Merged
merged 5 commits into from
Jan 17, 2018
Merged

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Jan 7, 2018

This PR contains the following upstream commits:


DNSSeed defines a DNS Seed with a hostname and whether it supports
filtering by service flag bits.

Older nodes previously added the IP and port information to the address
manager which proved to be unreliable as an inbound connection from a
peer didn't necessarily mean the peer itself accepted inbound
connections.

This also fixes a bug where the peer package was incorrectly sending
the peer's services as its own.
DNSSeed defines a DNS Seed with a hostname and whether it supports
filtering by service flag bits.
@dajohi
Copy link
Member

dajohi commented Jan 7, 2018

@dnldd did you run this?

@dnldd
Copy link
Member Author

dnldd commented Jan 7, 2018

@dajohi yes, run it on testnet. dcrd synced without errors. Did I miss something?

Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

ok

@dajohi
Copy link
Member

dajohi commented Jan 7, 2018

sorry, no. just wanted to make sure you ran it with peers.json removed.

Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

ok

return d.Host
}

// Register registers the network parameters for a Bitcoin network. This may
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you accidentally reverted the Decred to Bitcoin. s/Bitcoin/Decred/

DNSSeed defines a DNS Seed with a hostname and whether it supports
filtering by service flag bits.
@dnldd dnldd force-pushed the merge_seedservice branch from f685f08 to 7f7894c Compare January 17, 2018 23:03
@davecgh davecgh merged commit 7f7894c into decred:master Jan 17, 2018
@dnldd dnldd deleted the merge_seedservice branch January 17, 2018 23:28
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