diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go index 2500a969cf..320bc7c9ed 100644 --- a/cmd/geth/consolecmd.go +++ b/cmd/geth/consolecmd.go @@ -18,6 +18,7 @@ package main import ( "fmt" + "github.com/urfave/cli" "os" "os/signal" "path/filepath" @@ -126,6 +127,8 @@ func remoteConsole(ctx *cli.Context) error { path = filepath.Join(path, "testnet") } else if ctx.GlobalBool(utils.RinkebyFlag.Name) { path = filepath.Join(path, "rinkeby") + } else if ctx.GlobalBool(utils.GoerliFlag.Name) { //Goerli + path = filepath.Join(path, "goerli") } } endpoint = fmt.Sprintf("%s/geth.ipc", path) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index f431621baf..6f472b9089 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -20,6 +20,7 @@ package utils import ( "crypto/ecdsa" "fmt" + "github.com/urfave/cli" "io/ioutil" "math/big" "os" @@ -144,6 +145,10 @@ var ( Name: "dev", Usage: "Ephemeral proof-of-authority network with a pre-funded developer account, mining enabled", } + GoerliFLag = cli.BoolFlag{ + Name: "goerli", + Usage: "Goerli network: pre-configured proof-of-authority test network", + } DeveloperPeriodFlag = cli.IntFlag{ Name: "dev.period", Usage: "Block period to use in developer mode (0 = mine only if transaction pending)",