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

Fix Interop Mode #8961

Merged
merged 2 commits into from
Jun 2, 2021
Merged

Fix Interop Mode #8961

merged 2 commits into from
Jun 2, 2021

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Jun 1, 2021

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

  • In the event we use our interop flags this changes the config name, so that we do not include the mainnet
    embedded genesis state.

Which issues(s) does this PR fix?

N.A

Other notes for review

@nisdas nisdas requested a review from a team as a code owner June 1, 2021 09:36
@nisdas nisdas requested review from kasey, jmozah and terencechain June 1, 2021 09:36
@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #8961 (bf214f5) into develop (eb1d122) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #8961      +/-   ##
===========================================
- Coverage    60.87%   60.84%   -0.04%     
===========================================
  Files          530      530              
  Lines        37501    37698     +197     
===========================================
+ Hits         22830    22936     +106     
- Misses       11393    11472      +79     
- Partials      3278     3290      +12     

numValsIsSet := cliCtx.IsSet(flags.InteropNumValidatorsFlag.Name)
votesIsSet := cliCtx.IsSet(flags.InteropMockEth1DataVotesFlag.Name)

if genStateIsSet || genTimeIsSet || numValsIsSet || votesIsSet {
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't this be genStateIsSet && genTimeIsSet && numValsIsSet && votesIsSet?

we need all four flags to apply for interop to work right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope anyone should be fine, technically all we need is just the correct genesis state.

@prylabs-bulldozer prylabs-bulldozer bot merged commit 8a6e2a3 into develop Jun 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the fixInteropMode branch June 2, 2021 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants