From 1a1a1ee4ff1b664a5f14599e0e57da892c187855 Mon Sep 17 00:00:00 2001 From: Kobi Gurkan Date: Wed, 16 Sep 2015 21:01:21 +0300 Subject: [PATCH] cmd/geth: extradata is correcly initialized with console --- cmd/geth/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index f546f89cc..b54d85c22 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -360,7 +360,7 @@ func main() { } } -// MakeExtra resolves extradata for the miner from a flag or returns a default. +// makeExtra resolves extradata for the miner from a flag or returns a default. func makeExtra(ctx *cli.Context) []byte { if ctx.GlobalIsSet(ExtraDataFlag.Name) { return []byte(ctx.GlobalString(ExtraDataFlag.Name)) @@ -444,6 +444,8 @@ func console(ctx *cli.Context) { utils.CheckLegalese(ctx.GlobalString(utils.DataDirFlag.Name)) cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx) + cfg.ExtraData = makeExtra(ctx) + ethereum, err := eth.New(cfg) if err != nil { utils.Fatalf("%v", err)