Merge branch 'break-loop-when-found-warm-up-sector' of github.com:IPFSMain-Official/lotus into IPFSMain-Official-break-loop-when-found-warm-up-sector
This commit is contained in:
commit
379100b470
@ -24,6 +24,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error {
|
|||||||
|
|
||||||
var sector abi.SectorNumber = math.MaxUint64
|
var sector abi.SectorNumber = math.MaxUint64
|
||||||
|
|
||||||
|
out:
|
||||||
for dlIdx := range deadlines {
|
for dlIdx := range deadlines {
|
||||||
partitions, err := m.api.StateMinerPartitions(ctx, m.address, uint64(dlIdx), types.EmptyTSK)
|
partitions, err := m.api.StateMinerPartitions(ctx, m.address, uint64(dlIdx), types.EmptyTSK)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -40,6 +41,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sector = abi.SectorNumber(b)
|
sector = abi.SectorNumber(b)
|
||||||
|
break out
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user