aboutsummaryrefslogtreecommitdiffstats
path: root/node/config.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-16 17:53:50 +0800
committerFelix Lange <fjl@twurst.com>2016-09-16 21:24:31 +0800
commitb42a5b118f1aa7ac1235547c8594146978941401 (patch)
tree5a0a56308fe3137f1c9c69394281dadfc4551f37 /node/config.go
parenteeb322ae649c4a1a32430cdddfffed70f509181e (diff)
downloaddexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.gz
dexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.zst
dexon-b42a5b118f1aa7ac1235547c8594146978941401.zip
common, node: move datadir defaults into package node
Diffstat (limited to 'node/config.go')
-rw-r--r--node/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/config.go b/node/config.go
index 4a18432c7..15884a12e 100644
--- a/node/config.go
+++ b/node/config.go
@@ -201,7 +201,7 @@ func DefaultIPCEndpoint(clientIdentifier string) string {
panic("empty executable name")
}
}
- config := &Config{DataDir: common.DefaultDataDir(), IPCPath: clientIdentifier + ".ipc"}
+ config := &Config{DataDir: DefaultDataDir(), IPCPath: clientIdentifier + ".ipc"}
return config.IPCEndpoint()
}
@@ -216,7 +216,7 @@ func (c *Config) HTTPEndpoint() string {
// DefaultHTTPEndpoint returns the HTTP endpoint used by default.
func DefaultHTTPEndpoint() string {
- config := &Config{HTTPHost: common.DefaultHTTPHost, HTTPPort: common.DefaultHTTPPort}
+ config := &Config{HTTPHost: DefaultHTTPHost, HTTPPort: DefaultHTTPPort}
return config.HTTPEndpoint()
}
@@ -231,7 +231,7 @@ func (c *Config) WSEndpoint() string {
// DefaultWSEndpoint returns the websocket endpoint used by default.
func DefaultWSEndpoint() string {
- config := &Config{WSHost: common.DefaultWSHost, WSPort: common.DefaultWSPort}
+ config := &Config{WSHost: DefaultWSHost, WSPort: DefaultWSPort}
return config.WSEndpoint()
}