We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c1fce commit 04edbb0Copy full SHA for 04edbb0
node/config.go
@@ -365,12 +365,11 @@ func (c *Config) TrusterNodes() []*discover.Node {
365
366
// parsePersistentNodes parses a list of discovery node URLs loaded from a .json
367
// file from within the data directory.
368
-func (c *Config) parsePersistentNodes(file string) []*discover.Node {
+func (c *Config) parsePersistentNodes(path string) []*discover.Node {
369
// Short circuit if no node config is present
370
if c.DataDir == "" {
371
return nil
372
}
373
- path := filepath.Join(c.DataDir, file)
374
if _, err := os.Stat(path); err != nil {
375
376
0 commit comments