Merge pull request #33 from filecoin-project/fix/missing-pc1
Handle missing on-chain precommit in WaitSeed
This commit is contained in:
commit
cc8670b956
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user