Documentation ¶
Index ¶
- func AllCodes() []cid.Cid
- func AllPartSectors(mas State, sget func(Partition) (bitfield.BitField, error)) (bitfield.BitField, error)
- func PreferredSealProofTypeFromWindowPoStType(nver network.Version, proof abi.RegisteredPoStProof) (abi.RegisteredSealProof, error)
- func SealProofTypeFromSectorSize(ssize abi.SectorSize, nv network.Version) (abi.RegisteredSealProof, error)
- func WindowPoStProofTypeFromSectorSize(ssize abi.SectorSize) (abi.RegisteredPoStProof, error)
- func WinningPoStProofTypeFromWindowPoStProofType(nver network.Version, proof abi.RegisteredPoStProof) (abi.RegisteredPoStProof, error)
- type BeneficiaryTerm
- type Deadline
- type DeadlineDiff
- type DeadlinesDiff
- type LockedFunds
- type MinerInfo
- type Partition
- type PartitionDiff
- type PendingBeneficiaryChange
- type PreCommitChanges
- type SectorChanges
- type SectorExpiration
- type SectorExtensions
- type SectorLocation
- type SectorOnChainInfo
- type SectorPreCommitInfo
- type SectorPreCommitOnChainInfo
- type State
- type WindowPostVerifyInfo
- type WorkerKeyChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllPartSectors ¶
func PreferredSealProofTypeFromWindowPoStType ¶
func PreferredSealProofTypeFromWindowPoStType(nver network.Version, proof abi.RegisteredPoStProof) (abi.RegisteredSealProof, error)
func SealProofTypeFromSectorSize ¶
func SealProofTypeFromSectorSize(ssize abi.SectorSize, nv network.Version) (abi.RegisteredSealProof, error)
SealProofTypeFromSectorSize returns preferred seal proof type for creating new miner actors and new sectors
func WindowPoStProofTypeFromSectorSize ¶
func WindowPoStProofTypeFromSectorSize(ssize abi.SectorSize) (abi.RegisteredPoStProof, error)
WindowPoStProofTypeFromSectorSize returns preferred post proof type for creating new miner actors and new sectors
func WinningPoStProofTypeFromWindowPoStProofType ¶
func WinningPoStProofTypeFromWindowPoStProofType(nver network.Version, proof abi.RegisteredPoStProof) (abi.RegisteredPoStProof, error)
Types ¶
type BeneficiaryTerm ¶
type BeneficiaryTerm = minertypes.BeneficiaryTerm
type DeadlineDiff ¶
type DeadlineDiff map[uint64]*PartitionDiff
func DiffDeadline ¶
func DiffDeadline(pre, cur Deadline) (DeadlineDiff, error)
type DeadlinesDiff ¶
type DeadlinesDiff map[uint64]DeadlineDiff
func DiffDeadlines ¶
func DiffDeadlines(pre, cur State) (DeadlinesDiff, error)
type LockedFunds ¶
type LockedFunds struct { VestingFunds abi.TokenAmount InitialPledgeRequirement abi.TokenAmount PreCommitDeposits abi.TokenAmount }
func (LockedFunds) TotalLockedFunds ¶
func (lf LockedFunds) TotalLockedFunds() abi.TokenAmount
type MinerInfo ¶
type MinerInfo = minertypes.MinerInfo
type Partition ¶
type Partition interface { // AllSectors returns all sector numbers in this partition, including faulty, unproven, and terminated sectors AllSectors() (bitfield.BitField, error) // Subset of sectors detected/declared faulty and not yet recovered (excl. from PoSt). // Faults ∩ Terminated = ∅ FaultySectors() (bitfield.BitField, error) // Subset of faulty sectors expected to recover on next PoSt // Recoveries ∩ Terminated = ∅ RecoveringSectors() (bitfield.BitField, error) // Live sectors are those that are not terminated (but may be faulty). LiveSectors() (bitfield.BitField, error) // Active sectors are those that are neither terminated nor faulty nor unproven, i.e. actively contributing power. ActiveSectors() (bitfield.BitField, error) // Unproven sectors in this partition. This bitfield will be cleared on // a successful window post (or at the end of the partition's next // deadline). At that time, any still unproven sectors will be added to // the faulty sector bitfield. UnprovenSectors() (bitfield.BitField, error) }
type PartitionDiff ¶
type PartitionDiff struct { Removed bitfield.BitField Recovered bitfield.BitField Faulted bitfield.BitField Recovering bitfield.BitField }
func DiffPartition ¶
func DiffPartition(pre, cur Partition) (*PartitionDiff, error)
type PendingBeneficiaryChange ¶
type PendingBeneficiaryChange = minertypes.PendingBeneficiaryChange
type PreCommitChanges ¶
type PreCommitChanges struct { Added []SectorPreCommitOnChainInfo Removed []SectorPreCommitOnChainInfo }
func DiffPreCommits ¶
func DiffPreCommits(pre, cur State) (*PreCommitChanges, error)
type SectorChanges ¶
type SectorChanges struct { Added []SectorOnChainInfo Extended []SectorExtensions Removed []SectorOnChainInfo }
func DiffSectors ¶
func DiffSectors(pre, cur State) (*SectorChanges, error)
type SectorExpiration ¶
type SectorExpiration struct { OnTime abi.ChainEpoch // non-zero if sector is faulty, epoch at which it will be permanently // removed if it doesn't recover Early abi.ChainEpoch }
type SectorExtensions ¶
type SectorExtensions struct { From SectorOnChainInfo To SectorOnChainInfo }
type SectorLocation ¶
type SectorOnChainInfo ¶
type SectorOnChainInfo = minertypes.SectorOnChainInfo
type SectorPreCommitInfo ¶
type SectorPreCommitInfo = minertypes.SectorPreCommitInfo
type SectorPreCommitOnChainInfo ¶
type SectorPreCommitOnChainInfo = minertypes.SectorPreCommitOnChainInfo
type State ¶
type State interface { cbor.Marshaler Code() cid.Cid ActorKey() string ActorVersion() actorstypes.Version // Total available balance to spend. AvailableBalance(abi.TokenAmount) (abi.TokenAmount, error) // Funds that will vest by the given epoch. VestedFunds(abi.ChainEpoch) (abi.TokenAmount, error) // Funds locked for various reasons. LockedFunds() (LockedFunds, error) FeeDebt() (abi.TokenAmount, error) // Returns nil, nil if sector is not found GetSector(abi.SectorNumber) (*SectorOnChainInfo, error) FindSector(abi.SectorNumber) (*SectorLocation, error) GetSectorExpiration(abi.SectorNumber) (*SectorExpiration, error) GetPrecommittedSector(abi.SectorNumber) (*SectorPreCommitOnChainInfo, error) ForEachPrecommittedSector(func(SectorPreCommitOnChainInfo) error) error LoadSectors(sectorNos *bitfield.BitField) ([]*SectorOnChainInfo, error) NumLiveSectors() (uint64, error) IsAllocated(abi.SectorNumber) (bool, error) // UnallocatedSectorNumbers returns up to count unallocated sector numbers (or less than // count if there aren't enough). UnallocatedSectorNumbers(count int) ([]abi.SectorNumber, error) GetAllocatedSectors() (*bitfield.BitField, error) // Note that ProvingPeriodStart is deprecated and will be renamed / removed in a future version of actors GetProvingPeriodStart() (abi.ChainEpoch, error) // Testing only EraseAllUnproven() error LoadDeadline(idx uint64) (Deadline, error) ForEachDeadline(cb func(idx uint64, dl Deadline) error) error NumDeadlines() (uint64, error) DeadlinesChanged(State) (bool, error) Info() (MinerInfo, error) MinerInfoChanged(State) (bool, error) DeadlineInfo(epoch abi.ChainEpoch) (*dline.Info, error) DeadlineCronActive() (bool, error) GetState() interface{} // contains filtered or unexported methods }
type WindowPostVerifyInfo ¶
type WindowPostVerifyInfo = proof.WindowPoStVerifyInfo
type WorkerKeyChange ¶
type WorkerKeyChange = minertypes.WorkerKeyChange
Click to show internal directories.
Click to hide internal directories.