aboutsummaryrefslogtreecommitdiffstats
path: root/node/config.go
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-07 00:43:43 +0800
committerEgon Elbre <egonelbre@gmail.com>2017-08-07 18:43:08 +0800
commit19866075ace7b61301c78935d82b4f28992d92a5 (patch)
tree140ee9442ac55f882575c3ed49232082922f787a /node/config.go
parentb159cdd8dd33ba030e7af5aa144de43441e4f543 (diff)
downloaddexon-19866075ace7b61301c78935d82b4f28992d92a5.tar
dexon-19866075ace7b61301c78935d82b4f28992d92a5.tar.gz
dexon-19866075ace7b61301c78935d82b4f28992d92a5.tar.bz2
dexon-19866075ace7b61301c78935d82b4f28992d92a5.tar.lz
dexon-19866075ace7b61301c78935d82b4f28992d92a5.tar.xz
dexon-19866075ace7b61301c78935d82b4f28992d92a5.tar.zst
dexon-19866075ace7b61301c78935d82b4f28992d92a5.zip
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.