Skip to content

Commit

Permalink
fix: disable flag --pipecommit
Browse files Browse the repository at this point in the history
  • Loading branch information
brilliant-lx committed Dec 4, 2023
1 parent 57734db commit bfe000b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bfe000b

Please sign in to comment.