forked from storacha/w3up
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: aggregate offer invocation cid wrong (storacha#1063)
because not pieces cid block being used but buffer block, which was meaning a different CID being computed for invocation and receipt, as seen in: - https://github.com/web3-storage/w3up/blob/main/packages/filecoin-client/src/dealer.js#L58 - https://github.com/web3-storage/w3up/blob/main/packages/filecoin-api/src/aggregator/service.js#L97 So, `AggregatorRecord` now has a property for buffer and one for pieces. `buffer` allows us to get to know the pieces inside the `buffer` while `pieces` is the direct encoding of `PieceLink[]` dag-cbor. We could just rely on the buffer, but for issuing all `aggregate/accept` receipts for each piece, we would need an extra S3 get to read the buffer and compute the dag cbor for the list of pieces inside the buffer
- Loading branch information
1 parent
5918ff2
commit 90a5a4d
Showing
6 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters