Merge pull request #33 from filecoin-project/fix/missing-pc1

Handle missing on-chain precommit in WaitSeed
This commit is contained in:
Łukasz Magiera 2020-06-22 18:51:31 +02:00 committed by GitHub
commit cc8670b956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,6 +208,9 @@ func (m *Sealing) handleWaitSeed(ctx statemachine.Context, sector SectorInfo) er
if err != nil { if err != nil {
return xerrors.Errorf("getting precommit info: %w", err) return xerrors.Errorf("getting precommit info: %w", err)
} }
if pci == nil {
return ctx.Send(SectorChainPreCommitFailed{error: xerrors.Errorf("precommit info not found on chain")})
}
randHeight := pci.PreCommitEpoch + miner.PreCommitChallengeDelay randHeight := pci.PreCommitEpoch + miner.PreCommitChallengeDelay