minor fixes

This commit is contained in:
Shivam Sharma 2022-03-17 17:44:37 +05:30 committed by Victor Castell
parent 7f5469997a
commit 15304529f2

View file

@ -41,10 +41,15 @@ func (c *AttachCommand) Run(args []string) int {
return 0
}
// remoteConsole will connect to a remote geth instance, attaching a JavaScript
// remoteConsole will connect to a remote bor instance, attaching a JavaScript
// console to it.
func (c *AttachCommand) remoteConsole(args []string) error {
// Attach to a remotely running geth instance and start the JavaScript console
if len(args) < 1 {
args = append(args, "")
}
endpoint := args[0]
path := node.DefaultDataDir()
@ -56,7 +61,7 @@ func (c *AttachCommand) remoteConsole(args []string) error {
homeDir, _ := os.UserHomeDir()
path = filepath.Join(homeDir, "/.bor/data")
}
endpoint = fmt.Sprintf("%s/geth.ipc", path)
endpoint = fmt.Sprintf("%s/bor.ipc", path)
}
client, err := dialRPC(endpoint)
if err != nil {