From a431fdbdde54556f773a0df16307eac9fa5f69cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 16 Mar 2022 22:16:39 +0100 Subject: [PATCH] miner cli: Treat Activating sectors like Proving in sectors list --- cmd/lotus-miner/sectors.go | 2 +- extern/storage-sealing/input.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-miner/sectors.go b/cmd/lotus-miner/sectors.go index bc21504f2..725aac783 100644 --- a/cmd/lotus-miner/sectors.go +++ b/cmd/lotus-miner/sectors.go @@ -347,7 +347,7 @@ var sectorsListCmd = &cli.Command{ if cctx.Bool("unproven") { for state := range sealing.ExistSectorStateList { - if state == sealing.Proving { + if state == sealing.Proving || state == sealing.Available { continue } states = append(states, api.SectorState(state)) diff --git a/extern/storage-sealing/input.go b/extern/storage-sealing/input.go index 723bd3545..d2b51edc9 100644 --- a/extern/storage-sealing/input.go +++ b/extern/storage-sealing/input.go @@ -608,7 +608,7 @@ func (m *Sealing) tryGetUpgradeSector(ctx context.Context, sp abi.RegisteredSeal } if bestExpiration < minExpiration { - log.Infow("Not upgrading any sectors", "available", len(m.available), "bestExp", bestExpiration, "target", targetExpiration, "min", minExpiration, "candidate", candidate) + log.Infow("Not upgrading any sectors", "available", len(m.available), "pieces", len(m.pendingPieces), "bestExp", bestExpiration, "target", targetExpiration, "min", minExpiration, "candidate", candidate) // didn't find a good sector / no sectors were available return false, nil }