Documentation ¶
Index ¶
- type WorkerWrap
- func (g *WorkerWrap) CloseUploadHashrate()
- func (g *WorkerWrap) DoNextMining(pendingHeight uint64)
- func (g *WorkerWrap) Excavate(miningStuffCh chan interfaces.PowWorkerMiningStuffItem, ...)
- func (g *WorkerWrap) InitStart() error
- func (g *WorkerWrap) SetPowDevice(device interfaces.PowDevice)
- func (g *WorkerWrap) StopAllMining()
- type WorkerWrapConfig
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) SetPowDevice ¶
func (g *WorkerWrap) SetPowDevice(device interfaces.PowDevice)
Set mining equipment end
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
Click to show internal directories.
Click to hide internal directories.