Skip to content

Conversation

jtieri
Copy link
Contributor

@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 draft February 22, 2024 22:00
@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
@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