cmd/utils/flags.go: --diffsync flag is deprecate. (#1322)

This commit is contained in:
blxdyx 2023-02-28 09:47:51 +08:00 committed by GitHub
parent 175db6b8d4
commit 217e474cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1703,7 +1703,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
cfg.EnableTrustProtocol = ctx.GlobalIsSet(EnableTrustProtocolFlag.Name) cfg.EnableTrustProtocol = ctx.GlobalIsSet(EnableTrustProtocolFlag.Name)
} }
if ctx.GlobalIsSet(DiffSyncFlag.Name) { if ctx.GlobalIsSet(DiffSyncFlag.Name) {
cfg.DiffSync = ctx.GlobalBool(DiffSyncFlag.Name) log.Warn("The --diffsync flag is deprecated and will be removed in the future!")
} }
if ctx.GlobalIsSet(PipeCommitFlag.Name) { if ctx.GlobalIsSet(PipeCommitFlag.Name) {
cfg.PipeCommit = ctx.GlobalBool(PipeCommitFlag.Name) cfg.PipeCommit = ctx.GlobalBool(PipeCommitFlag.Name)