Skip to content

Commit

Permalink
reasonable max value for initial sector expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
zlhwdsz committed Jul 14, 2021
1 parent 1b733c2 commit ac0b30b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions extern/storage-sealing/states_sealing.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ func (m *Sealing) handlePreCommitting(ctx statemachine.Context, sector SectorInf

msd := policy.GetMaxProveCommitDuration(actors.VersionForNetwork(nv), sector.SectorType)

// Assume: both precommit msg & commit msg land on chain as late as possible
minExpiration := sector.TicketEpoch + policy.MaxPreCommitRandomnessLookback + msd + miner.MinSectorExpiration
if expiration < minExpiration {
if minExpiration := height + msd + miner.MinSectorExpiration + 10; expiration < minExpiration {
expiration = minExpiration
}

Expand Down

0 comments on commit ac0b30b

Please sign in to comment.