From 00e32d1edeac955ef8e8411b9b0bfe02f902f5a6 Mon Sep 17 00:00:00 2001 From: He Weidong Date: Thu, 29 Jul 2021 19:51:25 +0800 Subject: [PATCH] fix skipCount --- storage/wdpost_run.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/wdpost_run.go b/storage/wdpost_run.go index 51a0729af..78f648aa8 100644 --- a/storage/wdpost_run.go +++ b/storage/wdpost_run.go @@ -560,12 +560,12 @@ func (s *WindowPoStScheduler) runPoStCycle(ctx context.Context, di dline.Info, t Proofs: nil, } - skipCount := uint64(0) postSkipped := bitfield.New() somethingToProve := false // Retry until we run out of sectors to prove. for retries := 0; ; retries++ { + skipCount := uint64(0) var partitions []miner.PoStPartition var sinfos []proof2.SectorInfo for partIdx, partition := range batch { @@ -705,7 +705,6 @@ func (s *WindowPoStScheduler) runPoStCycle(ctx context.Context, di dline.Info, t return nil, ctx.Err() } - skipCount += uint64(len(ps)) for _, sector := range ps { postSkipped.Set(uint64(sector.Number)) }