From 407c6cf120abaa5d3eca7c0bc67ce5f08f4797a4 Mon Sep 17 00:00:00 2001 From: zenground0 Date: Tue, 1 Feb 2022 11:39:42 +0530 Subject: [PATCH] Stop recovery attempts after fault --- extern/storage-sealing/upgrade_queue.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extern/storage-sealing/upgrade_queue.go b/extern/storage-sealing/upgrade_queue.go index 86083930d..1e5bef67c 100644 --- a/extern/storage-sealing/upgrade_queue.go +++ b/extern/storage-sealing/upgrade_queue.go @@ -108,7 +108,8 @@ func sectorActive(ctx context.Context, api SealingAPI, maddr address.Address, to if err != nil { return false, xerrors.Errorf("failed to check active sectors: %w", err) } - // Check if sector is among active sectors + + // Ensure the upgraded sector is active var found bool for _, si := range active { if si.SectorNumber == sector {