miner

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0, MIT Imports: 12 Imported by: 12

Documentation

Index

Constants

View Source
const MaxMessagesPerBlock = 4000

Variables

This section is empty.

Functions

func NewTestMiner

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

Types

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