Stop recovery attempts after fault

This commit is contained in:
zenground0 2022-02-01 11:39:42 +05:30 committed by Jennifer Wang
parent 9e76a788e2
commit 407c6cf120

View File

@ -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 {