adding goerli flag

This commit is contained in:
priom 2018-09-07 18:19:14 -04:00
parent c2d7940c97
commit d650d64df7
2 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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)",