-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: sealing pipeline: Prepare deal assigning logic for FIP-45 #9412
Conversation
b055380
to
69b6d7f
Compare
8c8b860
to
b5e9f27
Compare
69b6d7f
to
75539ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok, I'll review again once todos are gone
@@ -127,7 +127,7 @@ type State interface { | |||
) (weight, verifiedWeight abi.DealWeight, err error) | |||
NextID() (abi.DealID, error) | |||
GetState() interface{} | |||
GetAllocationIdForPendingDeal(dealId abi.DealID) (verifregtypes.AllocationId, error) | |||
GetAllocationIdForPendingDeal(dealId abi.DealID) (*verifregtypes.AllocationId, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using nil you shoulld use the zero value which stands for invalid allocation. Updated go-state-types to help out: filecoin-project/go-state-types#93
FYI @jennijuju this is the kind of thing we definitely want an integration test for after code freeze |
noted! ideally we shall have an integration test WITH the pr.. (but given we are cut close to the ddl I will create an follow up issue! thanks for the ping. |
storage/pipeline/input.go
Outdated
for _, piece := range sector.Pieces { | ||
used += piece.Piece.Size.Unpadded() | ||
|
||
if piece.DealInfo.DealProposal.EndEpoch > lastDealEnd { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because piece.DealInfo is a pointer, should check if it is nil first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review!
6e36386
to
65e37c2
Compare
Related Issues
Closes #9276
What this does