Skip to content

Commit

Permalink
Merge pull request #7310 from swift-mx/master
Browse files Browse the repository at this point in the history
fix: check padSector Cid
  • Loading branch information
magik6k authored Sep 10, 2021
2 parents 0a04302 + b0b016b commit 65befc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/storage-sealing/states_sealing.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (m *Sealing) padSector(ctx context.Context, sectorID storage.SectorRef, exi
if err != nil {
return nil, xerrors.Errorf("add piece: %w", err)
}
if !expectCid.Equals(expectCid) {
if !expectCid.Equals(ppi.PieceCID) {
return nil, xerrors.Errorf("got unexpected padding piece CID: expected:%s, got:%s", expectCid, ppi.PieceCID)
}

Expand Down

0 comments on commit 65befc2

Please sign in to comment.