diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-24 18:40:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 18:40:42 +0800 |
commit | 6d6a5a93370371a33fb815d7ae47b60c7021c86a (patch) | |
tree | aa73dff1db3aa2566c2e74cf9ac37f13878fae80 /cmd/geth/main.go | |
parent | ea5f2da39ad198e58107a79214419e31988c5e5a (diff) | |
download | dexon-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.gz dexon-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.zst dexon-6d6a5a93370371a33fb815d7ae47b60c7021c86a.zip |
cmd, consensus, core, miner: instatx clique for --dev (#15323)
* cmd, consensus, core, miner: instatx clique for --dev
* cmd, consensus, clique: support configurable --dev block times
* cmd, core: allow --dev to use persistent storage too
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r-- | cmd/geth/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 88f3528f3..8bd27b5c6 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -99,7 +99,8 @@ var ( utils.NetrestrictFlag, utils.NodeKeyFileFlag, utils.NodeKeyHexFlag, - utils.DevModeFlag, + utils.DeveloperFlag, + utils.DeveloperPeriodFlag, utils.TestnetFlag, utils.RinkebyFlag, utils.VMEnableDebugFlag, @@ -270,7 +271,7 @@ func startNode(ctx *cli.Context, stack *node.Node) { } }() // Start auxiliary services if enabled - if ctx.GlobalBool(utils.MiningEnabledFlag.Name) { + if ctx.GlobalBool(utils.MiningEnabledFlag.Name) || ctx.GlobalBool(utils.DeveloperFlag.Name) { // Mining only makes sense if a full Ethereum node is running var ethereum *eth.Ethereum if err := stack.Service(ðereum); err != nil { |