diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index dbc1cdad1..088f012fe 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1402,10 +1402,10 @@ func setMiner(ctx *cli.Context, cfg *miner.Config) { cfg.GasPrice = GlobalBig(ctx, MinerGasPriceFlag.Name) } if ctx.GlobalIsSet(MinerRecommitIntervalFlag.Name) { - cfg.Recommit = ctx.Duration(MinerRecommitIntervalFlag.Name) + cfg.Recommit = ctx.GlobalDuration(MinerRecommitIntervalFlag.Name) } if ctx.GlobalIsSet(MinerNoVerfiyFlag.Name) { - cfg.Noverify = ctx.Bool(MinerNoVerfiyFlag.Name) + cfg.Noverify = ctx.GlobalBool(MinerNoVerfiyFlag.Name) } }