policy

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: Apache-2.0, MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainFinality                  = miner5.ChainFinality
	SealRandomnessLookback         = ChainFinality
	PaychSettleDelay               = paych5.SettleDelay
	MaxPreCommitRandomnessLookback = builtin5.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 AggregateNetworkFee added in v0.9.7

func AggregateNetworkFee(nwVer network.Version, aggregateSize int, baseFee abi.TokenAmount) abi.TokenAmount

func DealDurationBounds added in v0.9.4

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)

func GetAddressedSectorsMax added in v0.9.4

func GetAddressedSectorsMax(nwVer network.Version) int

func GetDeclarationsMax added in v0.9.4

func GetDeclarationsMax(nwVer network.Version) int

func GetDefaultAggregationProof added in v0.9.7

func GetDefaultAggregationProof() abi.RegisteredAggregationProof

func GetDefaultSectorSize

func GetDefaultSectorSize() abi.SectorSize

func GetMaxPoStPartitions

func GetMaxPoStPartitions(nv network.Version, p abi.RegisteredPoStProof) (int, error)

func GetMaxProveCommitDuration

func GetMaxProveCommitDuration(ver specactors.Version, t abi.RegisteredSealProof) abi.ChainEpoch

func GetMaxSectorExpirationExtension

func GetMaxSectorExpirationExtension() 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 added in v0.9.4

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL