From b08130a6aff5547ef6b8e1adb3bccf7e28ed40d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 9 Dec 2022 09:56:11 +0100 Subject: [PATCH] sealing: Add a guard check to getExpirationCached when sector not found --- storage/pipeline/input.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/pipeline/input.go b/storage/pipeline/input.go index e49e39d86..25c752e5f 100644 --- a/storage/pipeline/input.go +++ b/storage/pipeline/input.go @@ -449,6 +449,9 @@ func (m *Sealing) updateInput(ctx context.Context, sp abi.RegisteredSealProof) e if err != nil { return 0, big.Zero(), err } + if onChainInfo == nil { + return 0, big.Zero(), xerrors.Errorf("sector info for sector %d not found", sn) + } memo[sn] = struct { e abi.ChainEpoch p abi.TokenAmount