fix IsUnsealed

This commit is contained in:
Anton Evangelatov 2021-07-06 17:40:03 +02:00
parent 10dc90f7fe
commit b572c2b7bc

View File

@ -105,7 +105,7 @@ func (rpn *retrievalProviderNode) GetChainHead(ctx context.Context) (shared.TipS
}
func (rpn *retrievalProviderNode) IsUnsealed(ctx context.Context, sectorID abi.SectorNumber, offset abi.UnpaddedPieceSize, length abi.UnpaddedPieceSize) (bool, error) {
si, err := rpn.secb.SectorsStatus(ctx, sectorID, false)
si, err := rpn.sectorsStatus(ctx, sectorID, true)
if err != nil {
return false, xerrors.Errorf("failed to get sector info: %w", err)
}