Skip to content

Commit

Permalink
fix: Remove actor method from autogen source; Move inline to pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Jul 22, 2021
1 parent 123a976 commit 9e08b46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions chain/actors/policy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion extern/storage-sealing/precommit_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (p *BasicPreCommitPolicy) getCCSectorLifetime() (abi.ChainEpoch, error) {
ccLifetimeEpochs = policy.GetMaxSectorExpirationExtension()
}

if minExpiration := policy.GetMinSectorExpiration(); ccLifetimeEpochs < minExpiration {
if minExpiration := miner.MinSectorExpiration; ccLifetimeEpochs < minExpiration {
log.Warnf("value for CommittedCapacitySectorLiftime is too short, using default minimum (%d epochs)", minExpiration)
return minExpiration, nil
}
Expand Down

0 comments on commit 9e08b46

Please sign in to comment.