Skip to content

Commit

Permalink
feat: add RawBlockSize to DataRef (filecoin-project#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored and bibibong committed Feb 24, 2021
1 parent 0cf1f22 commit a76e97b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
5 changes: 3 additions & 2 deletions storagemarket/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ type DataRef struct {
TransferType string
Root cid.Cid

PieceCid *cid.Cid // Optional for non-manual transfer, will be recomputed from the data if not given
PieceSize abi.UnpaddedPieceSize // Optional for non-manual transfer, will be recomputed from the data if not given
PieceCid *cid.Cid // Optional for non-manual transfer, will be recomputed from the data if not given
PieceSize abi.UnpaddedPieceSize // Optional for non-manual transfer, will be recomputed from the data if not given
RawBlockSize uint64 // Optional: used as the denominator when calculating transfer %

Expert string
}
Expand Down
33 changes: 32 additions & 1 deletion storagemarket/types_cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a76e97b

Please sign in to comment.