Skip to content

Commit bdf4fd6

Browse files
committed
Merge pull request #1813 from kobigurk/develop
cmd/geth: extradata is correcly initialized with console
2 parents 69f48e4 + 1a1a1ee commit bdf4fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/geth/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func main() {
360360
}
361361
}
362362

363-
// MakeExtra resolves extradata for the miner from a flag or returns a default.
363+
// makeExtra resolves extradata for the miner from a flag or returns a default.
364364
func makeExtra(ctx *cli.Context) []byte {
365365
if ctx.GlobalIsSet(ExtraDataFlag.Name) {
366366
return []byte(ctx.GlobalString(ExtraDataFlag.Name))
@@ -444,6 +444,8 @@ func console(ctx *cli.Context) {
444444
utils.CheckLegalese(ctx.GlobalString(utils.DataDirFlag.Name))
445445

446446
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
447+
cfg.ExtraData = makeExtra(ctx)
448+
447449
ethereum, err := eth.New(cfg)
448450
if err != nil {
449451
utils.Fatalf("%v", err)

0 commit comments

Comments
 (0)