mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
cmd/utils: not set Etherbase when flag --unlock is set
This commit is contained in:
parent
92fb0ca836
commit
77f577a388
1 changed files with 4 additions and 1 deletions
|
|
@ -1095,7 +1095,10 @@ func setEtherbase(ctx *cli.Context, ks *keystore.KeyStore, cfg *ethconfig.Config
|
||||||
}
|
}
|
||||||
cfg.Etherbase = account.Address
|
cfg.Etherbase = account.Address
|
||||||
} else {
|
} else {
|
||||||
|
if !ctx.IsSet(UnlockedAccountFlag.Name) {
|
||||||
cfg.Etherbase = common.HexToAddress(ctx.String(MinerEtherbaseFlag.Name))
|
cfg.Etherbase = common.HexToAddress(ctx.String(MinerEtherbaseFlag.Name))
|
||||||
|
log.Info("Set etherbase", "address", cfg.Etherbase.Hex())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue