From b0b016b58c471c73e4a3c393704d0563bbacb521 Mon Sep 17 00:00:00 2001 From: swift-mx Date: Fri, 10 Sep 2021 18:13:07 +0800 Subject: [PATCH] fix: check padSector Cid --- extern/storage-sealing/states_sealing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/storage-sealing/states_sealing.go b/extern/storage-sealing/states_sealing.go index f21db336832..85e190c733a 100644 --- a/extern/storage-sealing/states_sealing.go +++ b/extern/storage-sealing/states_sealing.go @@ -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) }