diff options
author | Kobi Gurkan <kobigurk@gmail.com> | 2015-09-17 02:01:21 +0800 |
---|---|---|
committer | Kobi Gurkan <kobigurk@gmail.com> | 2015-09-17 02:01:21 +0800 |
commit | 1a1a1ee4ff1b664a5f14599e0e57da892c187855 (patch) | |
tree | 4902b73b72d72045b4fafb260bbc7f2f2547957f /cmd/geth/main.go | |
parent | 985b5f29ed18eac6a36d569edbde6dcfde8d1ab0 (diff) | |
download | go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.gz go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.zst go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.zip |
cmd/geth: extradata is correcly initialized with console
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r-- | cmd/geth/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) |