new proto3 definitions #21
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/types#21
Loading…
Reference in a new issue
No description provided.
Delete branch "proto3-new"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Final proto3 PR.
Closes #3, closes #16, closes #8, closes #13, closes #6, closes #17, closes lbryio/internal-issues#205.
One issue that was discussed a lot in #17 is urls vs claim ids. I stuck with urls for now because there are outstanding questions about claim ids. For example, if a thumbnail is at a claim with a fee, what do you do? Pay the fee? Not show the thumbnail? Ask the user? What if the fee is high? etc.
We can add
thumbnail_claim_id
later."For example, if a thumbnail is at a claim with a fee, what do you do? Pay the fee? Not show the thumbnail? Ask the user? What if the fee is high? etc."
Show broken/missing icon placeholder.
what if its 0.0000001 LBC for the thumbnail?
What's the use case? Why would it make sense to charge people to show a thumbnail?
I think if it requires payment it's a broken/invalid thumbnail.
@lyoshenka I would like to reiterate the two things I still think would be really good to add/change:
Drop the
Claim
container type, if you have to do a check on what type of claim it is anyways then the same check can be done when extracting the protobuf data from the claim transaction. Having a claim (protobuf type) within a claim (tx) seems like an extraneous layer of indirection.Once we start requiring
identities
for users in order to participate in commenting and possibly other activities on the LBRY network it's likely that theseidentity
certificates will significantly outpace the number ofchannels
. IfCertificate
is not desirable name, can we at least changechannel
toidentity
if 90% of these types of claims will be user identity certificates? Referring to user identities aschannels
just seems weird.@lyoshenka I proposed that for images we use either stream hashes or blob hashes, not claim ids. How often are images larger than 2MB, and do we want to support > 2MB images anyway? If not, blob hash works fine and doesn't require blockchain bloat for additional claims.
@kauffj A downside of not having a
claim
for the thumbnail is that when blob hosts want to purge invalid / abandoned blobs the method to figure out which blobs are still valid and which aren't would be more complicated: You can't just say "only keep blobs which are represented by valid calims on the blockchain" now you have to separately search for blob hashes in the metadata. The other downside is blob size but you could probably point to an sd_blob and therefore not have blob size limitation.On the positive side:
@eukreign fair point. Two further comments: