Skip to content
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

More feature flags removal #7526

Merged
merged 15 commits into from
Oct 14, 2020
Merged

More feature flags removal #7526

merged 15 commits into from
Oct 14, 2020

Conversation

terencechain
Copy link
Member

Part of #7509

I removed the feature flags disableStrictAttestationPubsubVerificationFlag, enableStateGenSigVerify, disableReduceAttesterStateCopy, disableBatchBlockVerify, and disableDomainDataCacheFlag. The rationale for removal are outlined in #7509

These are grouped in PR for ease to merge and resolve conflicts

@terencechain terencechain added Ready For Review A pull request ready for code review OK to merge labels Oct 14, 2020
@terencechain terencechain requested a review from a team as a code owner October 14, 2020 00:32
@terencechain terencechain self-assigned this Oct 14, 2020
Comment on lines +32 to +34
state, err = executeStateTransitionStateGen(ctx, state, signed[i])
if err != nil {
return nil, err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong.

Previous implementation with the flag on was this

  state, err := transition.ExecuteStateTransition(ctx, state, signed[i])

But now you are using executeStateTransitionStateGen? Why?
Why is this feature not being released, but removed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline https://discordapp.com/channels/476244492043812875/483017808658169866/765740051450691604

This is OK to remove, the flag was never used and should have been in the form of DisableStateGenSigVerify. It was a safety net in case the state gen feature was not working properly.

if err != nil {
return nil, err
}
state, err = processSlotsStateGen(ctx, state, targetSlot)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

prestonvanloon
prestonvanloon previously approved these changes Oct 14, 2020
@prestonvanloon prestonvanloon added this to the v1.0.0-beta milestone Oct 14, 2020
prestonvanloon
prestonvanloon previously approved these changes Oct 14, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit 8f04c55 into master Oct 14, 2020
@delete-merged-branch delete-merged-branch bot deleted the ff-cleanup-part6 branch October 14, 2020 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants