-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flip build-block-parallel
feature flag
#12408
Conversation
cfg.BuildBlockParallel = true | ||
if ctx.IsSet(disableBuildBlockParallel.Name) { | ||
logEnabled(disableBuildBlockParallel) | ||
cfg.BuildBlockParallel = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we not rename this to DisableBuildBlockParallel
, that way it is false by default and then just set it to true if the flag disableBuildBlockParallel
is set? Would also have to invert the condition where it is used in the code as well. But basically:
cfg.BuildBlockParallel = true | |
if ctx.IsSet(disableBuildBlockParallel.Name) { | |
logEnabled(disableBuildBlockParallel) | |
cfg.BuildBlockParallel = false | |
if ctx.IsSet(disableBuildBlockParallel.Name) { | |
logEnabled(disableBuildBlockParallel) | |
cfg.DisableBuildBlockParallel = true |
It seems clearer than disableBuildBlockParallel
setting BuildBlockParallel
to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then I will have to replace DisableBuildBlockParallel
with BuildBlockParallel
on the implementation side which is not ideal. I rather keep the changes constrained in the flag package to avoid core changes risk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been the standard pattern: #9225
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood, thank you for clarifying!
…build-block-parallel
build-block-parallel
is a great optimization for proposer, it has been tested on testnet over the last 2 weeks.The feature was enabled in v4.0.4 and we are planning to make it default for v4.0.5 with a disable option.