Merge pull request #6566 from GFZRZK/GFZRZK/correct_sector_expire_time

scale up sector expiration to avoid sector expire in batch-pre-commit waitting
This commit is contained in:
Łukasz Magiera 2021-06-24 10:59:49 +02:00 committed by GitHub
commit 84dbcb63d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ func (m *Sealing) preCommitParams(ctx statemachine.Context, sector SectorInfo) (
msd := policy.GetMaxProveCommitDuration(actors.VersionForNetwork(nv), sector.SectorType)
if minExpiration := height + msd + miner.MinSectorExpiration + 10; expiration < minExpiration {
if minExpiration := sector.TicketEpoch + policy.MaxPreCommitRandomnessLookback + msd + miner.MinSectorExpiration; expiration < minExpiration {
expiration = minExpiration
}
// TODO: enforce a reasonable _maximum_ sector lifetime?