sealing: Add a guard check to getExpirationCached when sector not found

This commit is contained in:
Łukasz Magiera 2022-12-09 09:56:11 +01:00
parent 2fd0cb4aff
commit f0bf3408bc

View File

@ -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