-
Notifications
You must be signed in to change notification settings - Fork 136
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
feat!: enable standalone consumers to reuse existing clients for ICS #2400
base: main
Are you sure you want to change the base?
Conversation
@@ -677,6 +677,7 @@ func New( | |||
} | |||
} | |||
|
|||
// TODO: remove this code |
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.
TODO: is any of the code below needed?
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.
That's how the changeover is done. The chain needs to read the new validator set from somewhere.
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.
Not sure I understand. Why are we calling InitGenesis. This should be automatically called when adding a new module to the chain.
// genesis state will default to false | ||
bool new_chain = 3; | ||
// Flag indicating whether the consumer CCV module starts in pre-CCV state | ||
bool preCCV = 4; |
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.
A little problematic to understand why there's new_chain
and preCCV
, but I get it.
Nit: Maybe consider uniform snakecase/camelcase usage. (I don't have strong feelings, feel free to ignore).
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.
preCCV is already a field in the consumer genesis, so I cannot change the name without breaking compatibility.
Description
Closes: #894
Remove code from
app/consumer-democracy/app.go
Add genesis transformation for compatibility with older consumer versions
Update docs -- changeover guidelines
Add e2e tests for standalone to consumer changeover
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if the change is state-machine breakingCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
the type prefix if the change is state-machine breaking