minerworkerwrap

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerWrap

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

func NewWorkerWrap

func NewWorkerWrap(config *WorkerWrapConfig) *WorkerWrap

func (*WorkerWrap) CloseUploadHashrate

func (g *WorkerWrap) CloseUploadHashrate()

Turn off force statistics

func (*WorkerWrap) DoNextMining

func (g *WorkerWrap) DoNextMining(pendingHeight uint64)

to do next

func (*WorkerWrap) Excavate

func (g *WorkerWrap) Excavate(miningStuffCh chan interfaces.PowWorkerMiningStuffItem, resultCh chan interfaces.PowWorkerMiningStuffItem)

do mining

func (*WorkerWrap) InitStart

func (g *WorkerWrap) InitStart() error

initialization

func (*WorkerWrap) SetPowDevice

func (g *WorkerWrap) SetPowDevice(device interfaces.PowDevice)

Set mining equipment end

func (*WorkerWrap) StopAllMining

func (g *WorkerWrap) StopAllMining()

stop mining

type WorkerWrapConfig

type WorkerWrapConfig struct {
	IsReportHashrate bool // Whether to report the calculation force
	// CPU configuration
	Supervene uint32 // CPU concurrent mining
	// GPU configuration
	GPU_Enable             bool
	GPU_OpenclPath         string
	GPU_PlatformNameMatch  string
	GPU_GroupSize          int
	GPU_GroupConcurrentNum int
	GPU_ItemLoopNum        int
	GPU_UseOneDeviceBuild  bool // Compile using a single device
	GPU_ForceRebuild       bool // Force recompile
	GPU_EmptyFuncTest      bool // Empty function compilation test
}

func NewEmptyWorkerWrapConfig

func NewEmptyWorkerWrapConfig() *WorkerWrapConfig

func NewWorkerWrapConfig

func NewWorkerWrapConfig(cnffile *sys.Inicnf) *WorkerWrapConfig

Jump to

Keyboard shortcuts

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