Documentation ¶
Index ¶
- func AdvanceOneDayWhileProving(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerInfos []MinerInfo) *vm7.VM
- func AdvanceOneDeadlineWithCron(t *testing.T, v *vm7.VM) *vm7.VM
- func AdvanceOneEpochWithCron(t *testing.T, v *vm7.VM) *vm7.VM
- func AdvanceToEpochWithCron(t *testing.T, v *vm7.VM, e abi.ChainEpoch) *vm7.VM
- func CheckMinerSectorActive(st *miner.State, store adt.Store, dlIdx, pIdx uint64, sector abi.SectorNumber, ...) (bool, error)
- func CreateDeals(t *testing.T, numberOfDeals int, v *vm7.VM, clientAddress address.Address, ...) []abi.DealID
- func MinerDLInfo(t *testing.T, v *vm7.VM, minerIDAddr address.Address) *dline.Info
- func MinerPower(t *testing.T, vm *vm7.VM, store adt.Store, minerIdAddr address.Address) miner.PowerPair
- func PreCommitSectors(t *testing.T, v *vm7.VM, count, batchSize int, worker, mAddr address.Address, ...) []*miner.SectorPreCommitOnChainInfo
- func PrecommitSectorNumbers(precommits []*miner.SectorPreCommitOnChainInfo) bitfield.BitField
- func PrintMinerInfos(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerInfos []MinerInfo)
- func ProveCommitSectors(t *testing.T, v *vm7.VM, worker, actor address.Address, ...)
- func ProveThenAdvanceOneDeadlineWithCron(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerInfos []MinerInfo) *vm7.VM
- func SubmitPoStForDeadline(t *testing.T, v *vm7.VM, ctxStore adt.Store, ...)
- type MinerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvanceOneEpochWithCron ¶
Advances to the next epoch, running cron.
func AdvanceToEpochWithCron ¶
Advances by deadline until e is contained within the deadline period represented by the returned deadline info. The VM returned will be set to the last deadline close, not at e.
func CheckMinerSectorActive ¶
func CheckMinerSectorActive(st *miner.State, store adt.Store, dlIdx, pIdx uint64, sector abi.SectorNumber, requireProven bool) (bool, error)
Returns an error if the target sector cannot be found, or some other bad state is reached. Returns false if the target sector is faulty, terminated, or unproven Returns true otherwise
func CreateDeals ¶
func MinerDLInfo ¶
func MinerPower ¶
func PreCommitSectors ¶
func PreCommitSectors(t *testing.T, v *vm7.VM, count, batchSize int, worker, mAddr address.Address, sealProof abi.RegisteredSealProof, sectorNumberBase abi.SectorNumber, expectCronEnrollment bool, expiration abi.ChainEpoch, dealIDs []abi.DealID) []*miner.SectorPreCommitOnChainInfo
func PrecommitSectorNumbers ¶
func PrecommitSectorNumbers(precommits []*miner.SectorPreCommitOnChainInfo) bitfield.BitField
Returns a bitfield of the sector numbers from a collection pre-committed sectors.
func PrintMinerInfos ¶
func ProveCommitSectors ¶
func ProveCommitSectors(t *testing.T, v *vm7.VM, worker, actor address.Address, precommits []*miner.SectorPreCommitOnChainInfo, includesDeals bool)
Proves pre-committed sectors as batches of aggSize.
Types ¶
Click to show internal directories.
Click to hide internal directories.