From 3ab625fa4c4507d16e6256c1f17026cb47659ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 2 May 2022 16:18:31 -0400 Subject: [PATCH] sealing: Finalize snap sectors before submitting proofs --- extern/storage-sealing/fsm.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extern/storage-sealing/fsm.go b/extern/storage-sealing/fsm.go index 034433a59..4e36ada6c 100644 --- a/extern/storage-sealing/fsm.go +++ b/extern/storage-sealing/fsm.go @@ -166,25 +166,25 @@ var fsmPlanners = map[SectorState]func(events []statemachine.Event, state *Secto on(SectorAbortUpgrade{}, AbortUpgrade), ), ProveReplicaUpdate: planOne( - on(SectorProveReplicaUpdate{}, SubmitReplicaUpdate), + on(SectorProveReplicaUpdate{}, FinalizeReplicaUpdate), on(SectorProveReplicaUpdateFailed{}, ReplicaUpdateFailed), on(SectorDealsExpired{}, SnapDealsDealsExpired), on(SectorInvalidDealIDs{}, SnapDealsRecoverDealIDs), on(SectorAbortUpgrade{}, AbortUpgrade), ), + FinalizeReplicaUpdate: planOne( + on(SectorFinalized{}, SubmitReplicaUpdate), + on(SectorFinalizeFailed{}, FinalizeReplicaUpdateFailed), + ), SubmitReplicaUpdate: planOne( on(SectorReplicaUpdateSubmitted{}, ReplicaUpdateWait), on(SectorSubmitReplicaUpdateFailed{}, ReplicaUpdateFailed), ), ReplicaUpdateWait: planOne( - on(SectorReplicaUpdateLanded{}, FinalizeReplicaUpdate), + on(SectorReplicaUpdateLanded{}, UpdateActivating), on(SectorSubmitReplicaUpdateFailed{}, ReplicaUpdateFailed), on(SectorAbortUpgrade{}, AbortUpgrade), ), - FinalizeReplicaUpdate: planOne( - on(SectorFinalized{}, UpdateActivating), - on(SectorFinalizeFailed{}, FinalizeReplicaUpdateFailed), - ), UpdateActivating: planOne( on(SectorUpdateActive{}, ReleaseSectorKey), ),