Documentation ¶
Index ¶
- Constants
- func AddSupportedProofTypes(types ...abi.RegisteredSealProof)
- func GetConsensusMinerMinPledge() abi.TokenAmount
- func GetDefaultSectorSize() abi.SectorSize
- func GetMaxPoStPartitions(p abi.RegisteredPoStProof) (int, error)
- func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) abi.ChainEpoch
- func GetPreCommitChallengeDelay() abi.ChainEpoch
- func GetWinningPoStSectorSetLookback(nwVer network.Version) abi.ChainEpoch
- func SetConsensusMinerMinPledge(amount abi.TokenAmount)
- func SetConsensusMinerMinPower(p abi.StoragePower)
- func SetPreCommitChallengeDelay(delay abi.ChainEpoch)
- func SetSupportedProofTypes(types ...abi.RegisteredSealProof)
- func SetWPoStChallengeWindow(period abi.ChainEpoch)
Constants ¶
const ( ChainFinality = miner3.ChainFinality SealRandomnessLookback = ChainFinality PaychSettleDelay = paych3.SettleDelay )
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 GetConsensusMinerMinPledge ¶
func GetConsensusMinerMinPledge() abi.TokenAmount
func GetDefaultSectorSize ¶
func GetDefaultSectorSize() abi.SectorSize
func GetMaxPoStPartitions ¶
func GetMaxPoStPartitions(p abi.RegisteredPoStProof) (int, error)
func GetMaxSectorExpirationExtension() abi.ChainEpoch { return miner2.MaxSectorExpirationExtension }
TODO: we'll probably need to abstract over this better in the future.
func GetMaxProveCommitDuration ¶
func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) abi.ChainEpoch
func GetPreCommitChallengeDelay ¶
func GetPreCommitChallengeDelay() abi.ChainEpoch
TODO: this function shouldn't really exist. Instead, the API should expose the precommit delay.
func GetWinningPoStSectorSetLookback ¶
func GetWinningPoStSectorSetLookback(nwVer network.Version) abi.ChainEpoch
func SetConsensusMinerMinPledge ¶
func SetConsensusMinerMinPledge(amount abi.TokenAmount)
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 SetPreCommitChallengeDelay ¶
func SetPreCommitChallengeDelay(delay abi.ChainEpoch)
SetPreCommitChallengeDelay sets the pre-commit challenge delay across all actors versions. Use 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 336 challenge windows in a proving period).
Types ¶
This section is empty.