Skip to content

Commit 9961d4f

Browse files
authored
fix: on restart dont repeat commp for offline deals that havent been published (#520)
1 parent 6fc5042 commit 9961d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storagemarket/deal_execution.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (p *Provider) execDealUptoAddPiece(ctx context.Context, deal *types.Provide
188188
// transfer can no longer be cancelled
189189
dh.setCancelTransferResponse(errors.New("transfer already complete"))
190190
p.dealLogger.Infow(deal.DealUuid, "deal data-transfer can no longer be cancelled")
191-
} else {
191+
} else if deal.Checkpoint < dealcheckpoints.Transferred {
192192
// verify CommP matches for an offline deal
193193
if err := p.verifyCommP(deal); err != nil {
194194
return &dealMakingError{

0 commit comments

Comments
 (0)