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

fix: only send client updates when necessary and when msg is properly constructed #1407

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

jtieri
Copy link
Member

@jtieri jtieri commented Feb 22, 2024

Previously in the relayer we were attempting to send a MsgUpdateClient when needsClientUpdate was true, as determined in the shouldUpdateClientNow method, without considering if the message was properly constructed in assembleMsgUpdateClient. This adds a check in trackAndSendMessages to ensure we only attempt to send the msg when a client update is necessary AND the MsgUpdateClient was properly constructed.

Closes #1405

… constructed

Previously in the relayer we were attempting to send a `MsgUpdateClient` when `needsClientUpdate` was true, as determined in the `shouldUpdateClientNow` method, without considering if the message was properly constructed in `assembleMsgUpdateClient`. This adds a check in `trackAndSendMessages` to ensure we only attempt to send the msg when a client update is necessary AND the `MsgUpdateClient` was properly constructed.
@jtieri jtieri marked this pull request as ready for review February 23, 2024 03:15
Copy link
Contributor

@boojamya boojamya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtieri jtieri merged commit f6f622e into main Feb 27, 2024
19 checks passed
@jtieri jtieri deleted the justin/client-update-fix branch February 27, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency between needsClientUpdate and mp.msgUpdateClient resulting in potential nil message issue
2 participants