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: unmarshal heartbeat responses #1295

Merged
merged 3 commits into from
Feb 10, 2022
Merged

fix: unmarshal heartbeat responses #1295

merged 3 commits into from
Feb 10, 2022

Conversation

cgorenflo
Copy link
Contributor

Description

The broadcaster can now send multiple messages per tx, and the heart beat code assumed there was always exactly one msg per tx. This fixes the heart beat code so any number of msgs can be sent, in particular multiple heart beats per tx.

var txMsg sdk.TxMsgData
var refundReply rewardtypes.RefundMsgResponse
var refundReply []rewardtypes.RefundMsgResponse
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var refundReply []rewardtypes.RefundMsgResponse
var refundReplies []rewardtypes.RefundMsgResponse

Copy link
Contributor

Choose a reason for hiding this comment

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

or refundResponses

Copy link
Contributor

@jcs47 jcs47 left a comment

Choose a reason for hiding this comment

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

LGTM

@cgorenflo cgorenflo enabled auto-merge (squash) February 10, 2022 22:41
@cgorenflo cgorenflo merged commit 4698f52 into main Feb 10, 2022
@cgorenflo cgorenflo deleted the fix_heartbeat branch February 10, 2022 22:45
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.

None yet

3 participants