fix: Remove actor method from autogen source; Move inline to pkg
This commit is contained in:
parent
123a976f62
commit
3829d6bd9a
@ -301,10 +301,6 @@ func GetWinningPoStSectorSetLookback(nwVer network.Version) abi.ChainEpoch {
|
|||||||
return ChainFinality
|
return ChainFinality
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetMinSectorExpiration() abi.ChainEpoch {
|
|
||||||
return miner5.MinSectorExpiration
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetMaxSectorExpirationExtension() abi.ChainEpoch {
|
func GetMaxSectorExpirationExtension() abi.ChainEpoch {
|
||||||
return miner5.MaxSectorExpirationExtension
|
return miner5.MaxSectorExpirationExtension
|
||||||
}
|
}
|
||||||
|
2
extern/storage-sealing/precommit_policy.go
vendored
2
extern/storage-sealing/precommit_policy.go
vendored
@ -110,7 +110,7 @@ func (p *BasicPreCommitPolicy) getCCSectorLifetime() (abi.ChainEpoch, error) {
|
|||||||
ccLifetimeEpochs = policy.GetMaxSectorExpirationExtension()
|
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)
|
log.Warnf("value for CommittedCapacitySectorLiftime is too short, using default minimum (%d epochs)", minExpiration)
|
||||||
return minExpiration, nil
|
return minExpiration, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user