Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsharma authored and Victor Castell committed May 9, 2022
1 parent 7f54699 commit 1530452
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/cli/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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 {
Expand Down

0 comments on commit 1530452

Please sign in to comment.