mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 22:24:32 +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
|
||||
} else {
|
||||
cfg.Etherbase = common.HexToAddress(ctx.String(MinerEtherbaseFlag.Name))
|
||||
if !ctx.IsSet(UnlockedAccountFlag.Name) {
|
||||
cfg.Etherbase = common.HexToAddress(ctx.String(MinerEtherbaseFlag.Name))
|
||||
log.Info("Set etherbase", "address", cfg.Etherbase.Hex())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue