Do not try to replace CC sectors with a deal-less sector

This commit is contained in:
Aayush Rajasekaran 2020-08-19 22:41:23 -04:00
parent 885f357c59
commit e9c526b218

View File

@ -44,6 +44,9 @@ func (m *Sealing) MarkForUpgrade(id abi.SectorNumber) error {
}
func (m *Sealing) tryUpgradeSector(ctx context.Context, params *miner.SectorPreCommitInfo) big.Int {
if len(params.DealIDs) == 0 {
return big.Zero()
}
replace := m.maybeUpgradableSector()
if replace != nil {
loc, err := m.api.StateSectorPartition(ctx, m.maddr, *replace, nil)