fix: Remove actor method from autogen source; Move inline to pkg

This commit is contained in:
Mike Greenberg 2021-07-22 15:05:03 -04:00
parent 123a976f62
commit 3829d6bd9a
2 changed files with 1 additions and 5 deletions

View File

@ -301,10 +301,6 @@ func GetWinningPoStSectorSetLookback(nwVer network.Version) abi.ChainEpoch {
return ChainFinality
}
func GetMinSectorExpiration() abi.ChainEpoch {
return miner5.MinSectorExpiration
}
func GetMaxSectorExpirationExtension() abi.ChainEpoch {
return miner5.MaxSectorExpirationExtension
}

View File

@ -110,7 +110,7 @@ func (p *BasicPreCommitPolicy) getCCSectorLifetime() (abi.ChainEpoch, error) {
ccLifetimeEpochs = policy.GetMaxSectorExpirationExtension()
}
if minExpiration := policy.GetMinSectorExpiration(); ccLifetimeEpochs < minExpiration {
if minExpiration := abi.ChainEpoch(miner.MinSectorExpiration); ccLifetimeEpochs < minExpiration {
log.Warnf("value for CommittedCapacitySectorLiftime is too short, using default minimum (%d epochs)", minExpiration)
return minExpiration, nil
}