Documentation ¶
Index ¶
- Constants
- Variables
- 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(nv network.Version) (abi.ChainEpoch, error)
- func GetMinSectorExpiration() abi.ChainEpoch
- func GetPreCommitChallengeDelay() abi.ChainEpoch
- func GetSealProofFromPoStProof(postProof abi.RegisteredPoStProof) (abi.RegisteredSealProof, error)
- 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 = miner15.ChainFinality SealRandomnessLookback = ChainFinality PaychSettleDelay = paych15.SettleDelay MaxPreCommitRandomnessLookback = builtin15.EpochsInDay + SealRandomnessLookback )
Variables ¶
var (
MarketDefaultAllocationTermBuffer = market15.MarketDefaultAllocationTermBuffer
)
var PoStToSealMap map[abi.RegisteredPoStProof]abi.RegisteredSealProof
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 ¶ added in v1.12.0
func AggregatePreCommitNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) (abi.TokenAmount, error)
func AggregateProveCommitNetworkFee ¶ added in v1.12.0
func AggregateProveCommitNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) (abi.TokenAmount, error)
func DealDurationBounds ¶ added in v1.9.0
func DealDurationBounds(pieceSize abi.PaddedPieceSize) (min, max abi.ChainEpoch)
func DealProviderCollateralBounds ¶ added in v0.9.0
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 GetAddressedSectorsMax ¶ added in v1.6.0
func GetDeclarationsMax ¶ added in v1.6.0
func GetDefaultAggregationProof ¶ added in v1.10.0
func GetDefaultAggregationProof() abi.RegisteredAggregationProof
func GetMaxPoStPartitions ¶ added in v1.1.1
func GetMaxProveCommitDuration ¶ added in v0.9.0
func GetMaxProveCommitDuration(ver actorstypes.Version, t abi.RegisteredSealProof) (abi.ChainEpoch, error)
func GetMaxSectorExpirationExtension ¶ added in v1.1.1
func GetMaxSectorExpirationExtension(nv network.Version) (abi.ChainEpoch, error)
func GetMinSectorExpiration ¶ added in v1.11.2
func GetMinSectorExpiration() abi.ChainEpoch
func GetPreCommitChallengeDelay ¶
func GetPreCommitChallengeDelay() abi.ChainEpoch
func GetSealProofFromPoStProof ¶ added in v1.25.2
func GetSealProofFromPoStProof(postProof abi.RegisteredPoStProof) (abi.RegisteredSealProof, error)
func GetSectorMaxLifetime ¶ added in v1.6.0
func GetSectorMaxLifetime(proof abi.RegisteredSealProof, nwVer network.Version) abi.ChainEpoch
func GetWinningPoStSectorSetLookback ¶ added in v0.9.0
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 ¶ added in v1.11.1
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 ¶ added in v0.9.0
func SetWPoStChallengeWindow(period abi.ChainEpoch)
SetWPoStChallengeWindow 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.