mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
add developer enabled check for mining
This commit is contained in:
parent
f86b79ed68
commit
ca0f04cfca
1 changed files with 2 additions and 2 deletions
|
|
@ -107,8 +107,8 @@ func NewServer(config *Config) (*Server, error) {
|
|||
stack.AccountManager().AddBackend(keystore.NewKeyStore(keydir, n, p))
|
||||
}
|
||||
|
||||
// sealing (if enabled)
|
||||
if config.Sealer.Enabled {
|
||||
// sealing (if enabled) or in dev mode
|
||||
if config.Sealer.Enabled || config.Developer.Enabled {
|
||||
if err := backend.StartMining(1); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue