Add terminating states to state lists
This commit is contained in:
parent
f01f1d377b
commit
7ddf1d1feb
@ -298,6 +298,10 @@ var stateList = []stateMeta{
|
|||||||
{col: color.FgYellow, state: sealing.CommitWait},
|
{col: color.FgYellow, state: sealing.CommitWait},
|
||||||
{col: color.FgYellow, state: sealing.FinalizeSector},
|
{col: color.FgYellow, state: sealing.FinalizeSector},
|
||||||
|
|
||||||
|
{col: color.FgCyan, state: sealing.Terminating},
|
||||||
|
{col: color.FgCyan, state: sealing.TerminateWait},
|
||||||
|
{col: color.FgCyan, state: sealing.TerminateFinality},
|
||||||
|
{col: color.FgCyan, state: sealing.TerminateFailed},
|
||||||
{col: color.FgCyan, state: sealing.Removing},
|
{col: color.FgCyan, state: sealing.Removing},
|
||||||
{col: color.FgCyan, state: sealing.Removed},
|
{col: color.FgCyan, state: sealing.Removed},
|
||||||
|
|
||||||
|
6
extern/storage-sealing/sector_state.go
vendored
6
extern/storage-sealing/sector_state.go
vendored
@ -30,6 +30,10 @@ var ExistSectorStateList = map[SectorState]struct{}{
|
|||||||
Faulty: {},
|
Faulty: {},
|
||||||
FaultReported: {},
|
FaultReported: {},
|
||||||
FaultedFinal: {},
|
FaultedFinal: {},
|
||||||
|
Terminating: {},
|
||||||
|
TerminateWait: {},
|
||||||
|
TerminateFinality: {},
|
||||||
|
TerminateFailed: {},
|
||||||
Removing: {},
|
Removing: {},
|
||||||
RemoveFailed: {},
|
RemoveFailed: {},
|
||||||
Removed: {},
|
Removed: {},
|
||||||
@ -83,7 +87,7 @@ func toStatState(st SectorState) statSectorState {
|
|||||||
switch st {
|
switch st {
|
||||||
case Empty, WaitDeals, Packing, GetTicket, PreCommit1, PreCommit2, PreCommitting, PreCommitWait, WaitSeed, Committing, SubmitCommit, CommitWait, FinalizeSector:
|
case Empty, WaitDeals, Packing, GetTicket, PreCommit1, PreCommit2, PreCommitting, PreCommitWait, WaitSeed, Committing, SubmitCommit, CommitWait, FinalizeSector:
|
||||||
return sstSealing
|
return sstSealing
|
||||||
case Proving, Removed, Removing:
|
case Proving, Removed, Removing, Terminating, TerminateWait, TerminateFinality, TerminateFailed:
|
||||||
return sstProving
|
return sstProving
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user