Skip to content

Commit

Permalink
disable diffsync when pipecommit is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Mar 30, 2022
1 parent cde35b0 commit 828e075
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -129,7 +129,7 @@ var (
}
PipeCommitFlag = cli.BoolFlag{
Name: "pipecommit",
Usage: "Enable MPT pipeline commit, it will improve syncing performance. It is an experimental feature(default is false)",
Usage: "Enable MPT pipeline commit, it will improve syncing performance. It is an experimental feature(default is false), diffsync will be disable if pipeline commit is enabled",
}
RangeLimitFlag = cli.BoolFlag{
Name: "rangelimit",
Expand Down
3 changes: 2 additions & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}
)
bcOps := make([]core.BlockChainOption, 0)
if config.DiffSync {
// TODO diffsync performance is not as expected, disable it when pipecommit is enabled for now
if config.DiffSync && !config.PipeCommit {
bcOps = append(bcOps, core.EnableLightProcessor)
}
if config.PipeCommit {
Expand Down

0 comments on commit 828e075

Please sign in to comment.