Dedup receipt #103

Merged
arijitAD merged 6 commits from dedup-receipt into master 2021-09-22 10:22:02 +00:00
arijitAD commented 2021-09-17 11:59:05 +00:00 (Migrated from github.com)
No description provided.
ashwinphatak (Migrated from github.com) reviewed 2021-09-17 11:59:05 +00:00
i-norden approved these changes 2021-09-17 13:02:24 +00:00
i-norden left a comment
Member

Just a few minor comments and a question, thanks!

Just a few minor comments and a question, thanks!
Member

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 to receipt_cids.leaf_mh_key = blocks.key?

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` to `receipt_cids.leaf_mh_key = blocks.key`?
Member

I think this should be renamed. It isn't fetching anything from a db or remote source.

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)
Member

Lets remove this comment

Lets remove this comment
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
Member

Ditto

Ditto
Member

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 CIDs we are returning is not for the Receipts themselves but rather the leaf nodes they are contained within
Member

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

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
}
Member

Not introduced here but I notice this comment is outdated, let's align it with the function

Not introduced here but I notice this comment is outdated, let's align it with the function
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:09:13 +00:00
arijitAD (Migrated from github.com) commented 2021-09-20 10:09:13 +00:00

Done

Done
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:09:53 +00:00
@ -351,1 +383,4 @@
return nil, nil, nil, err
}
rcts[i] = nodeVal
txs[i] = common.HexToHash(res.TxHash)
arijitAD (Migrated from github.com) commented 2021-09-20 10:09:53 +00:00

Done

Done
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:09:58 +00:00
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
arijitAD (Migrated from github.com) commented 2021-09-20 10:09:58 +00:00

Done

Done
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:11:07 +00:00
@ -56,10 +56,10 @@ func TxModelsContainsCID(txs []models.TxModel, cid string) bool {
return false
}
arijitAD (Migrated from github.com) commented 2021-09-20 10:11:07 +00:00

Done

Done
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:15:23 +00:00
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
arijitAD (Migrated from github.com) commented 2021-09-20 10:15:23 +00:00

Done

Done
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:21:05 +00:00
@ -362,4 +398,4 @@
}
cids := make([]string, len(rctResults))
rcts := make([][]byte, len(rctResults))
for i, res := range rctResults {
arijitAD (Migrated from github.com) commented 2021-09-20 10:21:04 +00:00

Done

Done
arijitAD (Migrated from github.com) reviewed 2021-09-20 10:30:12 +00:00
arijitAD (Migrated from github.com) commented 2021-09-20 10:30:12 +00:00

Reverted.

Reverted.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#103
No description provided.