sealing: Add missing planner for CommitFinalizeFailed
This commit is contained in:
parent
ec06f086ef
commit
05d9b5ce0f
5
extern/storage-sealing/fsm.go
vendored
5
extern/storage-sealing/fsm.go
vendored
@ -154,6 +154,9 @@ var fsmPlanners = map[SectorState]func(events []statemachine.Event, state *Secto
|
|||||||
on(SectorRetryComputeProof{}, Committing),
|
on(SectorRetryComputeProof{}, Committing),
|
||||||
on(SectorSealPreCommit1Failed{}, SealPreCommit1Failed),
|
on(SectorSealPreCommit1Failed{}, SealPreCommit1Failed),
|
||||||
),
|
),
|
||||||
|
CommitFinalizeFailed: planOne(
|
||||||
|
on(SectorRetryFinalize{}, CommitFinalizeFailed),
|
||||||
|
),
|
||||||
CommitFailed: planOne(
|
CommitFailed: planOne(
|
||||||
on(SectorSealPreCommit1Failed{}, SealPreCommit1Failed),
|
on(SectorSealPreCommit1Failed{}, SealPreCommit1Failed),
|
||||||
on(SectorRetryWaitSeed{}, WaitSeed),
|
on(SectorRetryWaitSeed{}, WaitSeed),
|
||||||
@ -392,6 +395,8 @@ func (m *Sealing) plan(events []statemachine.Event, state *SectorInfo) (func(sta
|
|||||||
return m.handleComputeProofFailed, processed, nil
|
return m.handleComputeProofFailed, processed, nil
|
||||||
case CommitFailed:
|
case CommitFailed:
|
||||||
return m.handleCommitFailed, processed, nil
|
return m.handleCommitFailed, processed, nil
|
||||||
|
case CommitFinalizeFailed:
|
||||||
|
fallthrough
|
||||||
case FinalizeFailed:
|
case FinalizeFailed:
|
||||||
return m.handleFinalizeFailed, processed, nil
|
return m.handleFinalizeFailed, processed, nil
|
||||||
case PackingFailed: // DEPRECATED: remove this for the next reset
|
case PackingFailed: // DEPRECATED: remove this for the next reset
|
||||||
|
8
extern/storage-sealing/sector_state.go
vendored
8
extern/storage-sealing/sector_state.go
vendored
@ -65,10 +65,10 @@ const (
|
|||||||
SubmitPreCommitBatch SectorState = "SubmitPreCommitBatch"
|
SubmitPreCommitBatch SectorState = "SubmitPreCommitBatch"
|
||||||
PreCommitBatchWait SectorState = "PreCommitBatchWait"
|
PreCommitBatchWait SectorState = "PreCommitBatchWait"
|
||||||
|
|
||||||
WaitSeed SectorState = "WaitSeed" // waiting for seed
|
WaitSeed SectorState = "WaitSeed" // waiting for seed
|
||||||
Committing SectorState = "Committing" // compute PoRep
|
Committing SectorState = "Committing" // compute PoRep
|
||||||
CommitFinalize SectorState = "CommitFinalize" // cleanup sector metadata before submitting the proof (early finalize)
|
CommitFinalize SectorState = "CommitFinalize" // cleanup sector metadata before submitting the proof (early finalize)
|
||||||
CommitFinalizeFailed SectorState = "CommitFinalizeFailed"
|
CommitFinalizeFailed SectorState = "CommitFinalizeFailed"
|
||||||
|
|
||||||
// single commit
|
// single commit
|
||||||
SubmitCommit SectorState = "SubmitCommit" // send commit message to the chain
|
SubmitCommit SectorState = "SubmitCommit" // send commit message to the chain
|
||||||
|
Loading…
Reference in New Issue
Block a user