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

Add ability to provide DNS seeds #19

Merged
merged 2 commits into from
Jul 1, 2019
Merged

Conversation

AndrejMitrovic
Copy link
Contributor

I'm not sure we can test this in the repo until we implement integration testing. However a few manual test-runs did work with a DNS seed node.

It will be reused in a later commit.
@AndrejMitrovic AndrejMitrovic force-pushed the dns-seeds branch 2 times, most recently from 5699fee to 29da5b3 Compare June 28, 2019 05:32
@AndrejMitrovic
Copy link
Contributor Author

Rebased against v0.x.x.

Copy link
Collaborator

@Geod24 Geod24 left a comment

Choose a reason for hiding this comment

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

LGTM, except one minor style fix

source/agora/node/Network.d Outdated Show resolved Hide resolved
@AndrejMitrovic
Copy link
Contributor Author

@Geod24 Fixed and squashed.

@AndrejMitrovic
Copy link
Contributor Author

AndrejMitrovic commented Jun 30, 2019

Btw, I wasn't sure whether we can provide a list of initial nodes and also DNS seeds in the same config section option. But we could improve upon this later.

@Geod24
Copy link
Collaborator

Geod24 commented Jun 30, 2019

@Geod24 Fixed and squashed.

You didn't modify the call site tho

}

/// try to discover the network until we found
/// all the validator nodes from our quorum set.
public void discover ()
{
logInfo("Resolving DNS from %s", this.dns_seeds);
this.addAddresses(resolveDnsSeeds(this.dns_seeds));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also what that in a if (this.dns_seeds.length)
We don't want to make DNS seed mandatory for the moment, do we ?

It's currently part of a separate config field to
cleanly separate between Agora nodes and DNS seeds.

It may later be merged into a common section if necessary.
@AndrejMitrovic
Copy link
Contributor Author

Rebased.

@Geod24 Geod24 merged commit 5f32543 into bosagora:v0.x.x Jul 1, 2019
@AndrejMitrovic AndrejMitrovic deleted the dns-seeds branch July 2, 2019 07:28
@AndrejMitrovic AndrejMitrovic added the type-feature An addition to the system introducing new functionalities label Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature An addition to the system introducing new functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants