From bd58746a7e47164132dd2b89eedf3e6dcea98e5c Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Thu, 24 May 2018 15:21:10 +0530 Subject: [PATCH] updated CONSOLECMD.GO --- cmd/XDC/consolecmd.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/XDC/consolecmd.go b/cmd/XDC/consolecmd.go index a85f2b386a..a9f537fbdb 100644 --- a/cmd/XDC/consolecmd.go +++ b/cmd/XDC/consolecmd.go @@ -128,11 +128,11 @@ func remoteConsole(ctx *cli.Context) error { path = filepath.Join(path, "rinkeby") } } - endpoint = fmt.Sprintf("%s/geth.ipc", path) + endpoint = fmt.Sprintf("%s/XDC.ipc", path) } client, err := dialRPC(endpoint) if err != nil { - utils.Fatalf("Unable to attach to remote geth: %v", err) + utils.Fatalf("Unable to attach to remote XDC: %v", err) } config := console.Config{ DataDir: utils.MakeDataDir(ctx), @@ -161,7 +161,7 @@ func remoteConsole(ctx *cli.Context) error { // dialRPC returns a RPC client which connects to the given endpoint. // The check for empty endpoint implements the defaulting logic -// for "geth attach" and "geth monitor" with no argument. +// for "XDC attach" and "XDC monitor" with no argument. func dialRPC(endpoint string) (*rpc.Client, error) { if endpoint == "" { endpoint = node.DefaultIPCEndpoint(clientIdentifier) @@ -173,7 +173,7 @@ func dialRPC(endpoint string) (*rpc.Client, error) { return rpc.Dial(endpoint) } -// ephemeralConsole starts a new geth node, attaches an ephemeral JavaScript +// ephemeralConsole starts a new XDC node, attaches an ephemeral JavaScript // console to it, executes each of the files specified as arguments and tears // everything down. func ephemeralConsole(ctx *cli.Context) error { @@ -185,7 +185,7 @@ func ephemeralConsole(ctx *cli.Context) error { // Attach to the newly started node and start the JavaScript console client, err := node.Attach() if err != nil { - utils.Fatalf("Failed to attach to the inproc geth: %v", err) + utils.Fatalf("Failed to attach to the inproc XDC: %v", err) } config := console.Config{ DataDir: utils.MakeDataDir(ctx),