-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix(test/relayer): missing consensus state in light_client
#256
Conversation
My suggestion in the issue was wrong. I found the main cause. We build the client update payload from Cosmos not exactly at target_height. It actually recalls create-client-payload to create a header for the whatever-is-latest height at that moment. Lines 41 to 50 in bb16917
Not really sure why we are not reusing the client-update-payload-builder implementation from hermes-sdk. It does reuse the create-client-payload-builder from hemres-sdk. |
Because we currently don't have |
@@ -182,6 +182,14 @@ impl From<CometClientState> for Any { | |||
} | |||
} | |||
|
|||
impl From<CometClientState> for IbcCometClientState { |
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.
Can't we just convert the two values directly? Or can we just use TendermintClientState as the type when interacting with the Cairo contract?
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.
Good point ! We can use the types directly 👍🏽
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.
Let's tackle this in a separate issue.
We need to reuse Tendermint header, client and consensus state.
starknet_to_cosmos_relay | ||
.send_target_update_client_messages(SourceTarget, &cosmos_status.height) | ||
.await?; | ||
|
||
// wait till the starknet_status is incremented | ||
while starknet_status.height <= starknet_height { |
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.
What is this waiting for? Is the devnet not progressing right after a Call
is processed?
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.
yes. but I can delete it. I thought that was the main bug at first.
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.
closes #241