fix: check padSector Cid
This commit is contained in:
parent
0a04302fb2
commit
b0b016b58c
2
extern/storage-sealing/states_sealing.go
vendored
2
extern/storage-sealing/states_sealing.go
vendored
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user