aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorKobi Gurkan <kobigurk@gmail.com>2015-09-17 02:01:21 +0800
committerKobi Gurkan <kobigurk@gmail.com>2015-09-17 02:01:21 +0800
commit1a1a1ee4ff1b664a5f14599e0e57da892c187855 (patch)
tree4902b73b72d72045b4fafb260bbc7f2f2547957f /cmd
parent985b5f29ed18eac6a36d569edbde6dcfde8d1ab0 (diff)
downloadgo-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar
go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.gz
go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.bz2
go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.lz
go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.xz
go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.tar.zst
go-tangerine-1a1a1ee4ff1b664a5f14599e0e57da892c187855.zip
cmd/geth: extradata is correcly initialized with console
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/main.go4
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)