From bfe000bd5d2f7473e8e591c3daf4b5247f62e36d Mon Sep 17 00:00:00 2001 From: "larry.lx" Date: Mon, 4 Dec 2023 13:02:19 +0800 Subject: [PATCH] fix: disable flag --pipecommit --- cmd/utils/flags.go | 2 +- core/blockchain.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index ea679b79a1..10f881f830 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1728,7 +1728,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { log.Warn("The --diffsync flag is deprecated and will be removed in the future!") } if ctx.GlobalIsSet(PipeCommitFlag.Name) { - cfg.PipeCommit = ctx.GlobalBool(PipeCommitFlag.Name) + log.Warn("The --pipecommit flag is deprecated and could be removed in the future!") } if ctx.GlobalIsSet(RangeLimitFlag.Name) { cfg.RangeLimit = ctx.GlobalBool(RangeLimitFlag.Name) diff --git a/core/blockchain.go b/core/blockchain.go index 4ce936ebfa..848746e005 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -3036,7 +3036,7 @@ func EnableLightProcessor(bc *BlockChain) (*BlockChain, error) { } func EnablePipelineCommit(bc *BlockChain) (*BlockChain, error) { - bc.pipeCommit = true + bc.pipeCommit = false return bc, nil }