sealing: Add a guard check to getExpirationCached when sector not found
This commit is contained in:
parent
2871377cee
commit
b08130a6af
@ -449,6 +449,9 @@ func (m *Sealing) updateInput(ctx context.Context, sp abi.RegisteredSealProof) e
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, big.Zero(), err
|
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 {
|
memo[sn] = struct {
|
||||||
e abi.ChainEpoch
|
e abi.ChainEpoch
|
||||||
p abi.TokenAmount
|
p abi.TokenAmount
|
||||||
|
Loading…
Reference in New Issue
Block a user