miner

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0, MIT Imports: 14 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestMiner

func NewTestMiner(nextCh <-chan struct{}, addr address.Address) func(api.FullNode, gen.ElectionPoStProver) *Miner

func SelectMessages added in v0.2.5

func SelectMessages(ctx context.Context, al ActorLookup, ts *types.TipSet, msgs []*types.SignedMessage) ([]*types.SignedMessage, error)

Types

type ActorLookup added in v0.2.5

type ActorLookup func(context.Context, address.Address, types.TipSetKey) (*types.Actor, error)

type Miner

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

func NewMiner

func NewMiner(api api.FullNode, epp gen.ElectionPoStProver) *Miner

func (*Miner) Addresses

func (m *Miner) Addresses() ([]address.Address, error)

func (*Miner) GetBestMiningCandidate

func (m *Miner) GetBestMiningCandidate(ctx context.Context) (*MiningBase, error)

func (*Miner) Register

func (m *Miner) Register(addr address.Address) error

func (*Miner) Unregister

func (m *Miner) Unregister(ctx context.Context, addr address.Address) error

type MiningBase

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

Jump to

Keyboard shortcuts

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