From 2ed89f496fe53142c6573fdeb7c10c192116eb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 13 Jan 2020 21:54:28 +0100 Subject: [PATCH] Revesve some sector states --- api/api_storage.go | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/api/api_storage.go b/api/api_storage.go index 8d0c39038..3fa2ab6d0 100644 --- a/api/api_storage.go +++ b/api/api_storage.go @@ -13,7 +13,8 @@ type SectorState = uint64 const ( UndefinedSectorState SectorState = iota - Empty // TODO: Is this useful + // happy path + Empty Packing // sector not in sealStore, and not on chain Unsealed // sealing / queued @@ -22,13 +23,32 @@ const ( Committing CommitWait // waiting for message to land on chain Proving + _ // reserved + _ + _ + _ + + // recovery handling + // Reseal + _ + _ + _ + _ + _ + _ + _ + + // error modes + FailedUnrecoverable SealFailed PreCommitFailed SealCommitFailed CommitFailed - - FailedUnrecoverable + _ + _ + _ + _ Faulty // sector is corrupted or gone for some reason FaultReported // sector has been declared as a fault on chain