minerworker

package
v0.0.0-...-e287cc3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinerWorker

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

func NewMinerWorker

func NewMinerWorker(cnf *MinerWorkerConfig) *MinerWorker

func (*MinerWorker) SetPowWorker

func (m *MinerWorker) SetPowWorker(worker interfaces.PowWorker)

Mining actuator

func (*MinerWorker) Start

func (m *MinerWorker) Start()

start

type MinerWorkerConfig

type MinerWorkerConfig struct {
	PoolAddress      *net.TCPAddr
	Rewards          fields.Address // Reward address
	IsReportHashrate bool           // Whether to report the calculation force
}

func NewEmptyMinerPoolWorkerConfig

func NewEmptyMinerPoolWorkerConfig() *MinerWorkerConfig

func NewMinerWorkerConfig

func NewMinerWorkerConfig(cnffile *sys.Inicnf) *MinerWorkerConfig

Jump to

Keyboard shortcuts

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