Merge pull request #3181 from filecoin-project/asr/cc-upgrade-fix

Do not try to replace CC sectors with a deal-less sector
This commit is contained in:
Łukasz Magiera 2020-08-20 10:56:57 +02:00 committed by GitHub
commit fc41b72bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)