-
Notifications
You must be signed in to change notification settings - Fork 64
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
02-client-refactor added support for multiple consensus states inside a header #115
02-client-refactor added support for multiple consensus states inside a header #115
Conversation
5b24f86
to
84cc4dc
Compare
Thanks for your PR! My understanding is that in ICS-02 and ibc-go, each client implementation currently has the responsibility for client state updates. (ref. cosmos/ibc-go#1871) I would like to apply the same design to ibc-solidity as much as possible. Would this design change help with beefy and grandpa client implementations? Also, if you have already considered it, please tell us why it was difficult. (however, there may be some things I missed about Gas cost or EVM constraints) |
Do you mean that |
Aside from that, I think you should move the definition of the handwritten @bluele Where is an appropriate place to move it to? |
hey @nadeemb53, I realized there is one problem with moving the state updates to each client implementation. The set* functions of the host cannot be called from Light Client contracts due to This have already been fixed in PR #116 . Therefore, please rebase the branch with the latest main. Also, could you minimize the changes in the commits? (e.g. the changes regarding code format are not needed in this PR) |
ce04237
to
f5125a7
Compare
@bluele thanks for your changes. I've rebased and followed it to further fix my PR. |
Hi @nadeemb53, I've left some comments. Also, run CI and it looks like integration-test is failed. |
91a9844
to
e62cbce
Compare
Hi @bluele , could you please run the CI? |
@nadeemb53 done. Please squash your commits into one commit. |
Signed-off-by: nadeemb53 <[email protected]>
e62cbce
to
d683489
Compare
done @bluele |
@nadeemb53 Great work! I've merged this. |
Signed-off-by: Jun Kimura <[email protected]>
Update tests and follow-up #115 Signed-off-by: Jun Kimura <[email protected]>
A beefy or grandpa header submitted on-chain can potentially contain headers with multiple consensus states. This PR refactors the client interface to support beefy and grandpa light clients.