aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-22 00:01:57 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-22 00:01:57 +0800
commitf1cc3619f5bed55d803532f65f80b38fa760664b (patch)
treeb59099b5e3527b7e478aaf08c48ace8a4c67d6f8 /cmd/utils/flags.go
parentaf28736bd0f01176fa95b715e48476dd8269b942 (diff)
parentbed80133e0573ebeefa201a15b20188198adf0ac (diff)
downloaddexon-f1cc3619f5bed55d803532f65f80b38fa760664b.tar
dexon-f1cc3619f5bed55d803532f65f80b38fa760664b.tar.gz
dexon-f1cc3619f5bed55d803532f65f80b38fa760664b.tar.bz2
dexon-f1cc3619f5bed55d803532f65f80b38fa760664b.tar.lz
dexon-f1cc3619f5bed55d803532f65f80b38fa760664b.tar.xz
dexon-f1cc3619f5bed55d803532f65f80b38fa760664b.tar.zst
dexon-f1cc3619f5bed55d803532f65f80b38fa760664b.zip
Merge pull request #1055 from ethersphere/autodag
automatic DAG pregeneration for smooth epoch transitions
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 2766e7517..cb774aa5b 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -112,6 +112,10 @@ var (
Name: "mine",
Usage: "Enable mining",
}
+ AutoDAGFlag = cli.BoolFlag{
+ Name: "autodag",
+ Usage: "Enable automatic DAG pregeneration",
+ }
EtherbaseFlag = cli.StringFlag{
Name: "etherbase",
Usage: "Public address for block mining rewards. By default the address of your primary account is used",
@@ -314,6 +318,7 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
BootNodes: ctx.GlobalString(BootnodesFlag.Name),
GasPrice: common.String2Big(ctx.GlobalString(GasPriceFlag.Name)),
SolcPath: ctx.GlobalString(SolcPathFlag.Name),
+ AutoDAG: ctx.GlobalBool(AutoDAGFlag.Name) || ctx.GlobalBool(MiningEnabledFlag.Name),
}
}