-
Notifications
You must be signed in to change notification settings - Fork 311
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
Add messages when converting to protobuf version of block data #580
Conversation
types/block.go
Outdated
// need to add messages | ||
protoMsgs := make([]*tmproto.Message, len(data.Messages.MessagesList)) | ||
for i, msg := range data.Messages.MessagesList { | ||
protoMsgs[i] = &tmproto.Message{ | ||
NamespaceId: msg.NamespaceID, | ||
Data: msg.Data, | ||
} | ||
} | ||
tp.Messages = tmproto.Messages{MessagesList: protoMsgs} | ||
|
||
return *tp |
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.
Yeaah, you found it. Congrats. LGTM
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.
Is it expected that the test fails?
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.
How did we not catch this before? 😅
Great find, straightforward fix!
* export parsing functions * add messages to proto version of data * remove redundant test * remove redundant test
* export parsing functions * add messages to proto version of data * remove redundant test * remove redundant test
Add messages when converting to protobuf version of block data (#580) * export parsing functions * add messages to proto version of data * remove redundant test * remove redundant test
Add messages when converting to protobuf version of block data (#580) * export parsing functions * add messages to proto version of data * remove redundant test * remove redundant test
Add messages when converting to protobuf version of block data (celestiaorg#580) * export parsing functions * add messages to proto version of data * remove redundant test * remove redundant test
Description
This PR is needed to properly submit messages, and fixes the "bug" where the chain halts after submitting a signed pay for message.