We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Remove prefix store field from the localhost client and replace it with a cleaner approach.
store
The ICS09 localhost client requires to introspect the client store in order to verify state.
Nevertheless, the client needs to be stored in the state as well, so we end up storing the prefix store that is able to introspect itself.
cosmos-sdk/x/ibc/09-localhost/types/client_state.go
Lines 28 to 34 in e01a56e
This is an antipattern and makes things very confusing.
Update the ClientState interface to pass an sdk.KVStore to all state verification functions.
ClientState
sdk.KVStore
cc: @AdityaSripal @cwgoes @colin-axner
The text was updated successfully, but these errors were encountered:
Yes, I think this approach is preferable (also see #6189 (comment)).
Sorry, something went wrong.
x/ibc: stateful clients (#6202)
b933002
Closes: #6198
fedekunze
Successfully merging a pull request may close this issue.
Summary
Remove prefix
store
field from the localhost client and replace it with a cleaner approach.Problem
The ICS09 localhost client requires to introspect the client store in order to verify state.
Nevertheless, the client needs to be stored in the state as well, so we end up storing the prefix store that is able to introspect itself.
cosmos-sdk/x/ibc/09-localhost/types/client_state.go
Lines 28 to 34 in e01a56e
This is an antipattern and makes things very confusing.
Solution
Update the
ClientState
interface to pass ansdk.KVStore
to all state verification functions.cc: @AdityaSripal @cwgoes @colin-axner
For Admin Use
The text was updated successfully, but these errors were encountered: