diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-10-07 23:21:13 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-10-07 23:25:33 +0800 |
commit | 2547c9c9b70a66f11626cb199f7d288ab1985259 (patch) | |
tree | 1baa73b0e8bffab0c16f342b9711ea5719ce3184 /cmd/geth | |
parent | 27528ad3d2c5a1816bc6305cbe434d6254bd52c2 (diff) | |
download | go-tangerine-2547c9c9b70a66f11626cb199f7d288ab1985259.tar.gz go-tangerine-2547c9c9b70a66f11626cb199f7d288ab1985259.tar.zst go-tangerine-2547c9c9b70a66f11626cb199f7d288ab1985259.zip |
cmd: properly initialize Olympic for all subcommands
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/main.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 1889cb2f2..2d2c38ce8 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -340,6 +340,7 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso } app.Before = func(ctx *cli.Context) error { utils.SetupLogger(ctx) + utils.SetupNetwork(ctx) utils.SetupVM(ctx) utils.SetupEth(ctx) if ctx.GlobalBool(utils.PProfEanbledFlag.Name) { @@ -391,9 +392,6 @@ func makeDefaultExtra() []byte { func run(ctx *cli.Context) { utils.CheckLegalese(utils.MustDataDir(ctx)) - if ctx.GlobalBool(utils.OlympicFlag.Name) { - utils.InitOlympic() - } cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx) cfg.ExtraData = makeExtra(ctx) |