Support for lbrynet daemon v0.30.0 #79
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
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/lbry-redux#79
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "lbrynet30"
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?
Ready for review
@ -170,3 +162,4 @@
Object.keys(claimsByUri).forEach((uri) => {
if (claimsByUri[uri] === claimId) {
delete claimsByUri[uri];
}
This never worked, not sure how the channel selector worked in the first place ¯_(ツ)_/¯
@ -170,3 +162,4 @@
Object.keys(claimsByUri).forEach((uri) => {
if (claimsByUri[uri] === claimId) {
delete claimsByUri[uri];
}
\ you dropped this
@ -170,3 +162,4 @@
Object.keys(claimsByUri).forEach((uri) => {
if (claimsByUri[uri] === claimId) {
delete claimsByUri[uri];
}
Appreciate it ¯\_(ツ)_/¯
The response used to just be a boolean
@ -77,2 +69,3 @@
.forEach(pendingClaim => {
.filter((pendingClaim) => byId[pendingClaim.claim_id])
.forEach((pendingClaim) => {
delete pendingById[pendingClaim.claim_id];
This is probably the biggest change, now we are only looking at
confirmations
to see if a claim is pending. Before it wouldn't be returned inclaim_list_mine
until it was confirmed so we had to keep track of it ourselves.Nothing major, just a few optimizations and formatting comments.
As per formatting, extraneous code gets reduced at build time; we can focus on legibility when writing source. (if you were trying to be minimalistic)
Adjust parens:
claims.filter(claim => claim.type && claim.type.match(/claim|update/))
to
claims.filter(claim => ( claim.type && claim.type.match(/claim|update/) ))
Just for legibility
You can also combine the filter and forEach to prevent lopping twice
Can combine the filter and forEach to prevent looping twice
@ -31,15 +30,43 @@ export const selectClaimsByUri = createSelector(selectState, selectClaimsById, (
export const selectAllClaimsByChannel = createSelector(
selectState,
Would you mind making each arrow fn
=>
have parens since it's multi-line?Not required and this is subjective to preference, let me know what you think, I find it easier to read.
@ -132,3 +132,3 @@
amount,
fee: amount < 0 ? (-1 * tx.fee) / append.length : 0,
fee: amount < 0 ? -1 * tx.fee / append.length : 0,
claim_id: item.claim_id,
why remove the parens?
@ -31,15 +30,43 @@ export const selectClaimsByUri = createSelector(selectState, selectClaimsById, (
export const selectAllClaimsByChannel = createSelector(
selectState,
We can add that, I don't really have a preference.
I belive it's a prettier option
@ -132,3 +132,3 @@
amount,
fee: amount < 0 ? (-1 * tx.fee) / append.length : 0,
fee: amount < 0 ? -1 * tx.fee / append.length : 0,
claim_id: item.claim_id,
That's just prettier doing it's thing I belive. Although I'm not sure why that is happening now. It should have been run on that file.