miner

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0, MIT Imports: 24 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestMiner

func NewTestMiner(nextCh <-chan MineReq, addr address.Address) func(api.FullNode, gen.WinningPoStProver) *Miner

Types

type ActorLookup added in v0.2.5

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

type MineReq added in v0.5.0

type MineReq struct {
	InjectNulls abi.ChainEpoch
	Done        func(bool, abi.ChainEpoch, error)
}

type Miner

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

func NewMiner

func NewMiner(api api.FullNode, epp gen.WinningPoStProver, addr address.Address, sf *slashfilter.SlashFilter) *Miner

func (*Miner) Address added in v0.3.0

func (m *Miner) Address() address.Address

func (*Miner) GetBestMiningCandidate

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

func (*Miner) Start added in v0.3.0

func (m *Miner) Start(ctx context.Context) error

func (*Miner) Stop added in v0.3.0

func (m *Miner) Stop(ctx context.Context) error

type MiningBase

type MiningBase struct {
	TipSet     *types.TipSet
	NullRounds abi.ChainEpoch
}

Jump to

Keyboard shortcuts

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