cmd/utils: fix typo in variable name (#23451)
This commit is contained in:
parent
0db0b27754
commit
b69f5ca7d4
@ -124,7 +124,7 @@ var (
|
|||||||
utils.MinerEtherbaseFlag,
|
utils.MinerEtherbaseFlag,
|
||||||
utils.MinerExtraDataFlag,
|
utils.MinerExtraDataFlag,
|
||||||
utils.MinerRecommitIntervalFlag,
|
utils.MinerRecommitIntervalFlag,
|
||||||
utils.MinerNoVerfiyFlag,
|
utils.MinerNoVerifyFlag,
|
||||||
utils.NATFlag,
|
utils.NATFlag,
|
||||||
utils.NoDiscoverFlag,
|
utils.NoDiscoverFlag,
|
||||||
utils.DiscoveryV5Flag,
|
utils.DiscoveryV5Flag,
|
||||||
|
@ -232,7 +232,7 @@ func verifyState(ctx *cli.Context) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := snaptree.Verify(root); err != nil {
|
if err := snaptree.Verify(root); err != nil {
|
||||||
log.Error("Failed to verfiy state", "root", root, "err", err)
|
log.Error("Failed to verify state", "root", root, "err", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.Info("Verified the state", "root", root)
|
log.Info("Verified the state", "root", root)
|
||||||
|
@ -185,7 +185,7 @@ var AppHelpFlagGroups = []flags.FlagGroup{
|
|||||||
utils.MinerEtherbaseFlag,
|
utils.MinerEtherbaseFlag,
|
||||||
utils.MinerExtraDataFlag,
|
utils.MinerExtraDataFlag,
|
||||||
utils.MinerRecommitIntervalFlag,
|
utils.MinerRecommitIntervalFlag,
|
||||||
utils.MinerNoVerfiyFlag,
|
utils.MinerNoVerifyFlag,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -460,7 +460,7 @@ var (
|
|||||||
Usage: "Time interval to recreate the block being mined",
|
Usage: "Time interval to recreate the block being mined",
|
||||||
Value: ethconfig.Defaults.Miner.Recommit,
|
Value: ethconfig.Defaults.Miner.Recommit,
|
||||||
}
|
}
|
||||||
MinerNoVerfiyFlag = cli.BoolFlag{
|
MinerNoVerifyFlag = cli.BoolFlag{
|
||||||
Name: "miner.noverify",
|
Name: "miner.noverify",
|
||||||
Usage: "Disable remote sealing verification",
|
Usage: "Disable remote sealing verification",
|
||||||
}
|
}
|
||||||
@ -1398,8 +1398,8 @@ func setMiner(ctx *cli.Context, cfg *miner.Config) {
|
|||||||
if ctx.GlobalIsSet(MinerRecommitIntervalFlag.Name) {
|
if ctx.GlobalIsSet(MinerRecommitIntervalFlag.Name) {
|
||||||
cfg.Recommit = ctx.GlobalDuration(MinerRecommitIntervalFlag.Name)
|
cfg.Recommit = ctx.GlobalDuration(MinerRecommitIntervalFlag.Name)
|
||||||
}
|
}
|
||||||
if ctx.GlobalIsSet(MinerNoVerfiyFlag.Name) {
|
if ctx.GlobalIsSet(MinerNoVerifyFlag.Name) {
|
||||||
cfg.Noverify = ctx.GlobalBool(MinerNoVerfiyFlag.Name)
|
cfg.Noverify = ctx.GlobalBool(MinerNoVerifyFlag.Name)
|
||||||
}
|
}
|
||||||
if ctx.GlobalIsSet(LegacyMinerGasTargetFlag.Name) {
|
if ctx.GlobalIsSet(LegacyMinerGasTargetFlag.Name) {
|
||||||
log.Warn("The generic --miner.gastarget flag is deprecated and will be removed in the future!")
|
log.Warn("The generic --miner.gastarget flag is deprecated and will be removed in the future!")
|
||||||
|
Loading…
Reference in New Issue
Block a user