Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Allow config files to specify no bootnodes #1438

Merged
merged 3 commits into from
May 13, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

Pantheon allows --bootnodes on the command line to specify no boot nodes (useful if this node is the boot node) but the equivalent in a config file (bootnodes=[]) resulted in an invalid enode URI error.

This fixes PantheonCommand so that it filters out empty values for bootnodes which makes the config work and is generally more userfriendly (accidentally using a double-comma in a bootnodes argument now also works).

@AbdelStark AbdelStark self-assigned this May 13, 2019
@AbdelStark AbdelStark added api Related to public APIs bug Something isn't working labels May 13, 2019
Copy link
Contributor

@AbdelStark AbdelStark left a comment

Choose a reason for hiding this comment

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

LGTM

@ajsutton ajsutton merged commit 0e83ca4 into PegaSysEng:master May 13, 2019
@ajsutton ajsutton deleted the no-bootnodes-in-config branch May 13, 2019 08:47
notlesh pushed a commit to notlesh/pantheon that referenced this pull request May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api Related to public APIs bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants