Store claims by claim_id and fileinfo by sd_hash #192
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#192
Loading…
Reference in a new issue
No description provided.
Delete branch "claims-by-id"
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?
@6ea86b96 unfortunately
sd_hash
is not guaranteed to be unique perfileInfo
, whileoutpoint
is. Technically, any number of claim entries could resolve to the samesd_hash
.Storing claims by id is definitely a smart change, please reduce this PR to just that and re-assign to me.
Hmm, that's a bummer with the
sd_hash
. I did that to be able to store pending uploads in the state. Will think about a different way to tackle pending uploads then.Ok, rebased out the fileinfo stuff @kauffj. It seems I can't assign the PR to you though.
I also have a question about the way claims/certificates work. I just commented this out for now as I didn't really understand what it's doing. https://github.com/lbryio/lbry-app/pull/192/files#diff-152922ea714e848ca916a0fde611d75eR25
Also, it seems that this PR introduces a bug for uris that have no claim. Happens when searching. We end up in an infinite resolve loop.
The loop is caused by the
setTimeout
that keeps trying to resolve the claim indoFetchCostInfoForUri
hmm, ok, so I see that the certificates stuff I commented out has broken the channel pages.
ok, nvm, I fixed those. I think this is good for review now @kauffj
Would you mind cleaning up these merge conflicts? Sorry to have created extra work for you. I was working backwards off of my email and thought this wasn't ready, or I would have merged it first.
rebased