aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorSorin Neacsu <sorin.neacsu@gmail.com>2017-12-16 05:31:10 +0800
committerSorin Neacsu <sorin.neacsu@gmail.com>2017-12-16 05:31:10 +0800
commit1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3 (patch)
tree7f2f72f274376f623a06fe7dfac8c46fcd7c549e /cmd
parentc6069a627c42c21fc02d0770d39db9a9be45b180 (diff)
downloadgo-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.tar
go-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.tar.gz
go-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.tar.bz2
go-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.tar.lz
go-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.tar.xz
go-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.tar.zst
go-tangerine-1d7d7f57d0fefa8797fbb269f1de76bca3e73dc3.zip
cmd/geth: add support for geth --rinkeby attach
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/consolecmd.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go
index 2c6b16687..9d5cc38a1 100644
--- a/cmd/geth/consolecmd.go
+++ b/cmd/geth/consolecmd.go
@@ -120,8 +120,12 @@ func remoteConsole(ctx *cli.Context) error {
if ctx.GlobalIsSet(utils.DataDirFlag.Name) {
path = ctx.GlobalString(utils.DataDirFlag.Name)
}
- if path != "" && ctx.GlobalBool(utils.TestnetFlag.Name) {
- path = filepath.Join(path, "testnet")
+ if path != "" {
+ if ctx.GlobalBool(utils.TestnetFlag.Name) {
+ path = filepath.Join(path, "testnet")
+ } else if ctx.GlobalBool(utils.RinkebyFlag.Name) {
+ path = filepath.Join(path, "rinkeby")
+ }
}
endpoint = fmt.Sprintf("%s/geth.ipc", path)
}