Skip to content

Commit

Permalink
--goerli connects to Aura engine by default (#24)
Browse files Browse the repository at this point in the history
* type fix

* goerli picks up aura by default
  • Loading branch information
priom authored and ChainSafeSystems committed Sep 8, 2018
1 parent 8297ce0 commit 8cbcd6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,11 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
cfg.NetworkId = 4
}
cfg.Genesis = core.DefaultRinkebyGenesisBlock()
case ctx.GlobalBool(GoerliFlag.Name):
if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
cfg.NetworkId = 5
}
cfg.Genesis = core.DefaultGoerliGenesisBlock()
case ctx.GlobalBool(DeveloperFlag.Name):
if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
cfg.NetworkId = 1337
Expand Down

0 comments on commit 8cbcd6d

Please sign in to comment.