good morning!!!!

Skip to content
Snippets Groups Projects
Commit bdf4fd60 authored by Felix Lange's avatar Felix Lange
Browse files

Merge pull request #1813 from kobigurk/develop

cmd/geth: extradata is correcly initialized with console
parents 69f48e46 1a1a1ee4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment