-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Refactore simapp.MakeEncodingConfig #7642
Comments
cc: @jackzampolin the relayer will need to update this, I saw usage of Edit: nvm I see the WIP pr that will change this to use the simappparams |
We can do something better but I don't consider this a necessary stargate backport. Also, I imagine the complexity of this will be large. We have higher priority backports to deal with. |
I wanted to rename it, to make it clear that users should not use it and rather use the The easiest way to do this task is:
|
I agree that this also seems like quite a large refactor. The most important things for v0.40.0 (Stargate backports) are:
This issue is laregely about devUX, which is important, but not critical IMO for a backport. Let's please hold off on work for it for now until we have Stargate out the door and published. |
There's a reason why that wasn't done initially. Basically because it wasn't how tests were structured before and it will be a lot of work. To me it's clearly out of scope for a backport. Users shouldn't be depending on anything in |
@aaronc - can we at least change a method name? Originally I was proposing to add a |
Related issue: #7310 |
another one: |
How about |
|
I'm OK with that. In my previous PR ( |
Here: #7597 (comment) |
Summary
We have two functions to create a global encoding config:
simapp.MakeEncodingConfig
- it will use the latter one and register interfaces for a codec in all modulessimappparams.MakeEncodingConfig
- it will only create an internal codec based on build flags (amino or protobuf).Problem Definition
simapp.MakeEncodingConfig
souldn't be exposed - it's an implementation detail for creating an app. App codecs should be used. Using MakeEncodingConfig is source of some problems we had recently with codecs and tests.Proposal
don't expose
simapp.MakeEncodingConfig
For Admin Use
The text was updated successfully, but these errors were encountered: