Merge branch 'IPFSMain-Official-break-loop-when-found-warm-up-sector'

This commit is contained in:
Łukasz Magiera 2020-11-18 02:04:01 +01:00
commit 9305947547

View File

@ -24,6 +24,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error {
var sector abi.SectorNumber = math.MaxUint64
out:
for dlIdx := range deadlines {
partitions, err := m.api.StateMinerPartitions(ctx, m.address, uint64(dlIdx), types.EmptyTSK)
if err != nil {
@ -40,6 +41,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error {
}
sector = abi.SectorNumber(b)
break out
}
}