-
Notifications
You must be signed in to change notification settings - Fork 970
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
feat(blob): introduce structure of blob #2012
feat(blob): introduce structure of blob #2012
Conversation
13ed32a
to
db91dd8
Compare
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.
My comment can be addressed later on, when we are making sure everything checks out with the RPC :)
// Version is the format that was used to encode Blob data and namespaceID into shares. | ||
func (b *Blob) Version() uint32 { | ||
return b.Blob.ShareVersion | ||
} |
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.
Users should be able to set the version and constructor of the Blob does not reflect that
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.
Then it requires additional changes on the app side, bc now they are using DefaultShareVersion
by default
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.
I think we should communicate this to the app team then. They requested the ability to configure the version in the Blob discussion
blob/blob.go
Outdated
|
||
// Blob represents any application-specific binary data that anyone can submit to Celestia. | ||
type Blob struct { | ||
*types.Blob |
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.
Does it have to be a pointer here?
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.
no
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.
generally approve - left two comments.
Codecov Report
@@ Coverage Diff @@
## feature_branch_blob_module #2012 +/- ##
=============================================================
Coverage ? 54.66%
=============================================================
Files ? 216
Lines ? 14021
Branches ? 0
=============================================================
Hits ? 7665
Misses ? 5536
Partials ? 820 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
7c02bb9
to
b1902af
Compare
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.
My last concern is share versioning. We can merge it as is if the app’s blob doesn't allow us to modify it, but if not we should allow changing this in this PR
app already had an opened PR that allows passing share version. Will extend our c-tor with one more param. |
67b1bda
to
1fbf4d2
Compare
Overview
Based on #1963.
Checklist