Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
8f35e308
Commit
8f35e308
authored
Nov 28, 2017
by
Maximilian Meister
Committed by
Felix Lange
Nov 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: fix geth attach --datadir=... (#15517)
parent
e323ed5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
consolecmd.go
cmd/geth/consolecmd.go
+6
-1
No files found.
cmd/geth/consolecmd.go
View file @
8f35e308
...
...
@@ -17,6 +17,7 @@
package
main
import
(
"fmt"
"os"
"os/signal"
"strings"
...
...
@@ -112,7 +113,11 @@ func localConsole(ctx *cli.Context) error {
// console to it.
func
remoteConsole
(
ctx
*
cli
.
Context
)
error
{
// Attach to a remotely running geth instance and start the JavaScript console
client
,
err
:=
dialRPC
(
ctx
.
Args
()
.
First
())
endpoint
:=
ctx
.
Args
()
.
First
()
if
endpoint
==
""
&&
ctx
.
GlobalIsSet
(
utils
.
DataDirFlag
.
Name
)
{
endpoint
=
fmt
.
Sprintf
(
"%s/geth.ipc"
,
ctx
.
GlobalString
(
utils
.
DataDirFlag
.
Name
))
}
client
,
err
:=
dialRPC
(
endpoint
)
if
err
!=
nil
{
utils
.
Fatalf
(
"Unable to attach to remote geth: %v"
,
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment