Skip to content

Commit

Permalink
feat: add RawBlockSize to DataRef (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored Feb 10, 2021
1 parent 8cb0cf2 commit 243abc6
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 @@ -176,8 +176,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 %
}

// ProviderDealState represents a Provider's current state of a deal
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 243abc6

Please sign in to comment.