From f1abd2fdea2176dd31b9d2f6d2ffed26572571cd Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Thu, 24 May 2018 14:54:31 +0530 Subject: [PATCH] updated CONFIG.GO --- cmd/XDC/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/XDC/config.go b/cmd/XDC/config.go index e6bd4d5bef..ef90226f90 100644 --- a/cmd/XDC/config.go +++ b/cmd/XDC/config.go @@ -74,7 +74,7 @@ type ethstatsConfig struct { URL string `toml:",omitempty"` } -type gethConfig struct { +type XDCConfig struct { Eth eth.Config Shh whisper.Config Node node.Config @@ -82,7 +82,7 @@ type gethConfig struct { Dashboard dashboard.Config } -func loadConfig(file string, cfg *gethConfig) error { +func loadConfig(file string, cfg *XDCConfig) error { f, err := os.Open(file) if err != nil { return err @@ -103,13 +103,13 @@ func defaultNodeConfig() node.Config { cfg.Version = params.VersionWithCommit(gitCommit) cfg.HTTPModules = append(cfg.HTTPModules, "eth", "shh") cfg.WSModules = append(cfg.WSModules, "eth", "shh") - cfg.IPCPath = "geth.ipc" + cfg.IPCPath = "XDC.ipc" return cfg } -func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) { +func makeConfigNode(ctx *cli.Context) (*node.Node, XDCConfig) { // Load defaults. - cfg := gethConfig{ + cfg := XDCConfig{ Eth: eth.DefaultConfig, Shh: whisper.DefaultConfig, Node: defaultNodeConfig(),