Dedup receipt #103
No reviewers
Labels
No Label
bug
critical
documentation
duplicate
enhancement
Epic
good first issue
help wanted
Integration tests
invalid
question
v5
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/ipld-eth-server#103
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dedup-receipt"
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?
Just a few minor comments and a question, thanks!
Brain is foggy and I'm not reasoning about this well atm, why are we changing this condition from
log_cids.leaf_mh_key = blocks.key
toreceipt_cids.leaf_mh_key = blocks.key
?I think this should be renamed. It isn't fetching anything from a db or remote source.
@ -351,1 +383,4 @@
return nil, nil, nil, err
}
rcts[i] = nodeVal
txs[i] = common.HexToHash(res.TxHash)
Lets remove this comment
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
Ditto
We may want to note that the CIDs we are returning is not for the Receipts themselves but rather the leaf nodes they are contained within
We may want to note that the CID we are returning is not for the Receipt itself but rather the leaf node it was contained within
@ -56,10 +56,10 @@ func TxModelsContainsCID(txs []models.TxModel, cid string) bool {
return false
}
Not introduced here but I notice this comment is outdated, let's align it with the function
Done
@ -351,1 +383,4 @@
return nil, nil, nil, err
}
rcts[i] = nodeVal
txs[i] = common.HexToHash(res.TxHash)
Done
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
Done
@ -56,10 +56,10 @@ func TxModelsContainsCID(txs []models.TxModel, cid string) bool {
return false
}
Done
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
Done
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
Done
Reverted.