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

ICS2: Split checkValidityAndUpdateState into 4 functions #693

Closed
colin-axner opened this issue Mar 21, 2022 · 0 comments · Fixed by #813
Closed

ICS2: Split checkValidityAndUpdateState into 4 functions #693

colin-axner opened this issue Mar 21, 2022 · 0 comments · Fixed by #813
Assignees

Comments

@colin-axner
Copy link
Contributor

In ibc-go, we have decided to refactor the 02-client submodule along with the interfaces defined within the ClientState. One of the decisions made was to split the checkValidityAndUpdateState into 4 functions:

  • VerifyClientMessage
  • CheckForMisbehaviour
  • UpdateStateOnMisbehaviour
  • UpdateState

Part of the reasoning for this change was that checkValidityAndUpdateState began to become overloaded with functionality as it was required to account for misbehaviour detection as well, which may not be apparent to light client developers, so a more explicit API requiring misbehaviour detection seems ideal. Since the entry point to updating a IBC client now accounts for misbehaviour detection, it made sense to combine these interfaces so any sort of update (misbehaviour, normal updates, batch updates) could use the same API

references

discussion leading to design
ibc-go issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants