Revesve some sector states

This commit is contained in:
Łukasz Magiera 2020-01-13 21:54:28 +01:00
parent a896b30039
commit 2ed89f496f

View File

@ -13,7 +13,8 @@ type SectorState = uint64
const ( const (
UndefinedSectorState SectorState = iota UndefinedSectorState SectorState = iota
Empty // TODO: Is this useful // happy path
Empty
Packing // sector not in sealStore, and not on chain Packing // sector not in sealStore, and not on chain
Unsealed // sealing / queued Unsealed // sealing / queued
@ -22,13 +23,32 @@ const (
Committing Committing
CommitWait // waiting for message to land on chain CommitWait // waiting for message to land on chain
Proving Proving
_ // reserved
_
_
_
// recovery handling
// Reseal
_
_
_
_
_
_
_
// error modes
FailedUnrecoverable
SealFailed SealFailed
PreCommitFailed PreCommitFailed
SealCommitFailed SealCommitFailed
CommitFailed CommitFailed
_
FailedUnrecoverable _
_
_
Faulty // sector is corrupted or gone for some reason Faulty // sector is corrupted or gone for some reason
FaultReported // sector has been declared as a fault on chain FaultReported // sector has been declared as a fault on chain