minerprotocols

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Host() host.Host
	ChainHead(context.Context) (*types.TipSet, error)
	StateMinerInfo(ctx context.Context, addr address.Address, tsk types.TipSetKey) (lapi.MinerInfo, error)
	StateListMiners(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error)
	StateMinerPower(context.Context, address.Address, types.TipSetKey) (*lapi.MinerPower, error)
}

type Task

type Task struct {
	// contains filtered or unexported fields
}

func NewTask

func NewTask(api API) *Task

func (*Task) Close

func (t *Task) Close() error

func (*Task) Process

func (t *Task) Process(ctx context.Context) (model.Persistable, error)

Jump to

Keyboard shortcuts

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