Skip to content

Conversation

eternnoir
Copy link
Contributor

// StaticNodes returns a list of node enode URLs configured as static nodes.
func (c *Config) StaticNodes() []*discover.Node {
    return c.parsePersistentNodes(c.resolvePath(datadirStaticNodes))
}

// TrusterNodes returns a list of node enode URLs configured as trusted nodes.
func (c *Config) TrusterNodes() []*discover.Node {
	return c.parsePersistentNodes(c.resolvePath(datadirTrustedNodes))
}

Already use c.resolvePath to get full file path. Don't need join in parsePersistentNodes function.

@mention-bot
Copy link

@eternnoir, thanks for your PR! By analyzing the history of the files in this pull request, we identified @karalabe, @fjl and @zsfelfoldi to be potential reviewers.

Copy link
Contributor

@fjl fjl left a comment

Choose a reason for hiding this comment

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

Thanks!

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