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

Deprecate --interop-genesis-state #12008

Merged
merged 35 commits into from
Mar 1, 2023
Merged

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Feb 17, 2023

What type of PR is this?

Cleanup

What does this PR do? Why is it needed?

The flag --interop-genesis-state does not work. Running interop with this flag results in the following error:

Deposit contract: 0x4242424242424242424242424242424242424242
could not get genesis block root: OriginGenesisRoot: not found in db

Running interop with --genesis-state works properly and this is the flag that should be used moving forward.

@rkapka rkapka added Ready For Review A pull request ready for code review OK to merge Cleanup Code health! labels Feb 17, 2023
@rkapka rkapka requested a review from a team as a code owner February 17, 2023 11:37
@kasey
Copy link
Contributor

kasey commented Feb 17, 2023

I think the pattern for deprecation is deleting the flag from it's home in cmd/beacon-chain and adding a new no-op flag with a deprecation warning here: ./config/features/deprecated_flags.go

Since we're close to a major version breaking change opportunity, and this is an easy removal to justify given the normal genesis state flag works, I would suggest we go ahead and also remove the code that currently uses InteropGenesisStateFlag. cc @terencechain as he I think he does a lot with interop and might know if there are things that could break from this, and @rauljordan to check if his interop docker stuff uses this flag.

@rkapka
Copy link
Contributor Author

rkapka commented Feb 20, 2023

I think the pattern for deprecation is deleting the flag from it's home in cmd/beacon-chain and adding a new no-op flag with a deprecation warning here: ./config/features/deprecated_flags.go

Ah yes, I forgot about this. Also I agree that maybe we should just remove this all together instead of deprecating.

@nisdas nisdas changed the title Deprecaste --interop-genesis-state Deprecate --interop-genesis-state Feb 22, 2023
@nisdas nisdas added the V4 V4 release related items label Feb 22, 2023
@nisdas
Copy link
Member

nisdas commented Feb 22, 2023

We can possibly split the removal of code that uses InteropGenesisStateFlag into another PR. @rkapka we prob should follow our pattern for flag deprecation in this PR as kasey mentioned, since we will probably be having another release until v4. Once that is done we can merge it in

terencechain
terencechain previously approved these changes Feb 24, 2023
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

Nice removal indeed but we need to fix the tests

@prylabs-bulldozer prylabs-bulldozer bot merged commit 17fe935 into develop Mar 1, 2023
@delete-merged-branch delete-merged-branch bot deleted the deprecate-interop-flag branch March 1, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Code health! Ready For Review A pull request ready for code review V4 V4 release related items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants