Skip to content

Commit

Permalink
debug piece generation
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Aug 20, 2021
1 parent 4a5261f commit 8c8a003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storagemarket/impl/provider.go
Expand Up @@ -318,10 +318,11 @@ func (p *Provider) ImportDataForDeal(ctx context.Context, propCid cid.Cid, data
cleanup()
return xerrors.Errorf("failed to determine proof type: %w", err)
}
log.Debugw("fetched proof type", "propCid", propCid)
log.Debugw("fetched proof type", "propCid", propCid, "pt", proofType)

pieceCid, err := generatePieceCommitment(proofType, tempfi, carSize)
if err != nil {
log.Errorw("failed to generate piece commitment", "err", err)
cleanup()
return xerrors.Errorf("failed to generate commP: %w", err)
}
Expand Down

0 comments on commit 8c8a003

Please sign in to comment.