vm7Util

package
v8.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvanceOneDayWhileProving

func AdvanceOneDayWhileProving(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerInfos []MinerInfo) *vm7.VM

func AdvanceOneDeadlineWithCron

func AdvanceOneDeadlineWithCron(t *testing.T, v *vm7.VM) *vm7.VM

func AdvanceOneEpochWithCron

func AdvanceOneEpochWithCron(t *testing.T, v *vm7.VM) *vm7.VM

Advances to the next epoch, running cron.

func AdvanceToEpochWithCron

func AdvanceToEpochWithCron(t *testing.T, v *vm7.VM, e abi.ChainEpoch) *vm7.VM

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 CreateDeals(t *testing.T, numberOfDeals int, v *vm7.VM, clientAddress address.Address, workerAddress address.Address, minerAddress address.Address, sealProof abi.RegisteredSealProof) []abi.DealID

func MinerDLInfo

func MinerDLInfo(t *testing.T, v *vm7.VM, minerIDAddr address.Address) *dline.Info

func MinerPower

func MinerPower(t *testing.T, vm *vm7.VM, store adt.Store, minerIdAddr address.Address) miner.PowerPair

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 PrintMinerInfos(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerInfos []MinerInfo)

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.

func ProveThenAdvanceOneDeadlineWithCron

func ProveThenAdvanceOneDeadlineWithCron(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerInfos []MinerInfo) *vm7.VM

func SubmitPoStForDeadline

func SubmitPoStForDeadline(t *testing.T, v *vm7.VM, ctxStore adt.Store, minerAddress, workerAddress address.Address)

Types

type MinerInfo

type MinerInfo struct {
	WorkerAddress address.Address
	MinerAddress  address.Address
}

Jump to

Keyboard shortcuts

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