Documentation ¶
Index ¶
- Constants
- func AddSupportedProofTypes(types ...abi.RegisteredSealProof)
- func AggregatePreCommitNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) (abi.TokenAmount, error)
- func AggregateProveCommitNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) (abi.TokenAmount, error)
- func DealDurationBounds(pieceSize abi.PaddedPieceSize) (min, max abi.ChainEpoch)
- func DealProviderCollateralBounds(size abi.PaddedPieceSize, verified bool, ...) (min, max abi.TokenAmount, err error)
- func GetAddressedSectorsMax(nwVer network.Version) (int, error)
- func GetDeclarationsMax(nwVer network.Version) (int, error)
- func GetDefaultAggregationProof() abi.RegisteredAggregationProof
- func GetMaxPoStPartitions(nv network.Version, p abi.RegisteredPoStProof) (int, error)
- func GetMaxProveCommitDuration(ver actorstypes.Version, t abi.RegisteredSealProof) (abi.ChainEpoch, error)
- func GetMaxSectorExpirationExtension() abi.ChainEpoch
- func GetMinSectorExpiration() abi.ChainEpoch
- func GetPreCommitChallengeDelay() abi.ChainEpoch
- func GetSectorMaxLifetime(proof abi.RegisteredSealProof, nwVer network.Version) abi.ChainEpoch
- func GetWinningPoStSectorSetLookback(nwVer network.Version) abi.ChainEpoch
- func SetConsensusMinerMinPower(p abi.StoragePower)
- func SetMinVerifiedDealSize(size abi.StoragePower)
- func SetPreCommitChallengeDelay(delay abi.ChainEpoch)
- func SetProviderCollateralSupplyTarget(num, denom big.Int)
- func SetSupportedProofTypes(types ...abi.RegisteredSealProof)
- func SetWPoStChallengeWindow(period abi.ChainEpoch)
Constants ¶
const ( ChainFinality = miner9.ChainFinality SealRandomnessLookback = ChainFinality PaychSettleDelay = paych9.SettleDelay MaxPreCommitRandomnessLookback = builtin9.EpochsInDay + SealRandomnessLookback )
Variables ¶
This section is empty.
Functions ¶
func AddSupportedProofTypes ¶
func AddSupportedProofTypes(types ...abi.RegisteredSealProof)
AddSupportedProofTypes sets supported proof types, across all actor versions. This should only be used for testing.
func AggregatePreCommitNetworkFee ¶
func AggregatePreCommitNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) (abi.TokenAmount, error)
func AggregateProveCommitNetworkFee ¶
func AggregateProveCommitNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) (abi.TokenAmount, error)
func DealDurationBounds ¶
func DealDurationBounds(pieceSize abi.PaddedPieceSize) (min, max abi.ChainEpoch)
func DealProviderCollateralBounds ¶
func DealProviderCollateralBounds( size abi.PaddedPieceSize, verified bool, rawBytePower, qaPower, baselinePower abi.StoragePower, circulatingFil abi.TokenAmount, nwVer network.Version, ) (min, max abi.TokenAmount, err error)
func GetDefaultAggregationProof ¶
func GetDefaultAggregationProof() abi.RegisteredAggregationProof
func GetMaxPoStPartitions ¶
func GetMaxProveCommitDuration ¶
func GetMaxProveCommitDuration(ver actorstypes.Version, t abi.RegisteredSealProof) (abi.ChainEpoch, error)
func GetMaxSectorExpirationExtension ¶
func GetMaxSectorExpirationExtension() abi.ChainEpoch
func GetMinSectorExpiration ¶
func GetMinSectorExpiration() abi.ChainEpoch
func GetPreCommitChallengeDelay ¶
func GetPreCommitChallengeDelay() abi.ChainEpoch
TODO: this function shouldn't really exist. Instead, the API should expose the precommit delay.
func GetSectorMaxLifetime ¶
func GetSectorMaxLifetime(proof abi.RegisteredSealProof, nwVer network.Version) abi.ChainEpoch
func GetWinningPoStSectorSetLookback ¶
func GetWinningPoStSectorSetLookback(nwVer network.Version) abi.ChainEpoch
func SetConsensusMinerMinPower ¶
func SetConsensusMinerMinPower(p abi.StoragePower)
SetConsensusMinerMinPower sets the minimum power of an individual miner must meet for leader election, across all actor versions. This should only be used for testing.
func SetMinVerifiedDealSize ¶
func SetMinVerifiedDealSize(size abi.StoragePower)
SetMinVerifiedDealSize sets the minimum size of a verified deal. This should only be used for testing.
func SetPreCommitChallengeDelay ¶
func SetPreCommitChallengeDelay(delay abi.ChainEpoch)
SetPreCommitChallengeDelay sets the pre-commit challenge delay across all actors versions. Use for testing.
func SetProviderCollateralSupplyTarget ¶
SetProviderCollateralSupplyTarget sets the percentage of normalized circulating supply that must be covered by provider collateral in a deal. This should only be used for testing.
func SetSupportedProofTypes ¶
func SetSupportedProofTypes(types ...abi.RegisteredSealProof)
SetSupportedProofTypes sets supported proof types, across all actor versions. This should only be used for testing.
func SetWPoStChallengeWindow ¶
func SetWPoStChallengeWindow(period abi.ChainEpoch)
Sets the challenge window and scales the proving period to match (such that there are always 48 challenge windows in a proving period).
Types ¶
This section is empty.