aboutsummaryrefslogtreecommitdiffstats
path: root/node/config.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-08-07 19:28:10 +0800
committerGitHub <noreply@github.com>2017-08-07 19:28:10 +0800
commit37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30 (patch)
tree8e4101bb4cb8a55f4974753037e7fa1b28252e52 /node/config.go
parentb36f54c684e138895d980e210a03516db109dd47 (diff)
parent19866075ace7b61301c78935d82b4f28992d92a5 (diff)
downloadgo-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.tar
go-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.tar.gz
go-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.tar.bz2
go-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.tar.lz
go-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.tar.xz
go-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.tar.zst
go-tangerine-37e9fcaccaff4c7eda4848f8bd3f9ac5b42daa30.zip
Merge pull request #14923 from egonelbre/megacheck_node
node: fix megacheck warnings
Diffstat (limited to 'node/config.go')
-rw-r--r--node/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/config.go b/node/config.go
index abbe64f43..e9693277a 100644
--- a/node/config.go
+++ b/node/config.go
@@ -35,7 +35,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover"
)
-var (
+const (
datadirPrivateKey = "nodekey" // Path within the datadir to the node's private key
datadirDefaultKeyStore = "keystore" // Path within the datadir to the keystore
datadirStaticNodes = "static-nodes.json" // Path within the datadir to the static node list
@@ -160,7 +160,7 @@ func (c *Config) NodeDB() string {
if c.DataDir == "" {
return "" // ephemeral
}
- return c.resolvePath("nodes")
+ return c.resolvePath(datadirNodeDatabase)
}
// DefaultIPCEndpoint returns the IPC path used by default.