Versions in this module Expand all Collapse all v0 v0.1.20 Feb 23, 2024 Changes in this version + type CPUExecute struct + func NewCPUExecute(cnf *Config) *CPUExecute + func (c *CPUExecute) Allocate() chan itfcs.PoWExecute + func (c *CPUExecute) Config() itfcs.PoWConfig + func (c *CPUExecute) DoMining(stopmark *byte, successmark *byte, input interfaces.Block, nonce_offset uint32) (*itfcs.PoWResultData, error) + func (c *CPUExecute) GetNonceSpan() uint32 + func (c *CPUExecute) Init() error + func (c *CPUExecute) ReportSpanTime(sec float64) + func (c *CPUExecute) StartAllocate() + type Config struct + Concurrent uint32 + Detail_Log bool + DeviceSpanTime float64 + GPU_EmptyFuncTest bool + GPU_Enable bool + GPU_ForceRebuild bool + GPU_GroupConcurrent int + GPU_GroupSize int + GPU_ItemLoopNum int + GPU_OpenclPath string + GPU_PlatformNameMatch string + GPU_UseMainFileContent string + GPU_UseOneDeviceBuild bool + TEST_DEBUG bool + func NewConfig(cnfsection *inicnf.Section) *Config + func NewEmptyMinerPoolWorkerConfig() *Config + func (c *Config) IsDetailLog() bool + type HashrateLogTable struct + func NewHashrateLog() *HashrateLogTable + func (h *HashrateLogTable) RecordHashChan() chan fields.Hash + func (h *HashrateLogTable) UpdateMiningBlock(blk interfaces.Block) + type PoWDeviceMng struct + func NewPoWDeviceMng(alloter itfcs.PoWExecute) *PoWDeviceMng + func (c *PoWDeviceMng) Config() itfcs.PoWConfig + func (c *PoWDeviceMng) DoMining(stopmark *byte, inputCh chan *itfcs.PoWStuffBriefData) (*itfcs.PoWResultData, error) + func (c *PoWDeviceMng) Init() error + func (c *PoWDeviceMng) StopMining() + type PoWMasterMng struct + func NewPoWMasterMng(alloter itfcs.PoWExecute) *PoWMasterMng + func (m *PoWMasterMng) Config() itfcs.PoWConfig + func (m *PoWMasterMng) DoMining(input interfaces.Block, resCh chan interfaces.Block) error + func (m *PoWMasterMng) Init() error + func (m *PoWMasterMng) StopMining() + type PoWThreadMng struct + func NewPoWThreadMng(exec itfcs.PoWExecute) *PoWThreadMng + func (c *PoWThreadMng) Config() itfcs.PoWConfig + func (c *PoWThreadMng) DoMining(stopmark *byte, target_hash fields.Hash, input itfcs.PoWStuffBriefData, ...) error + func (c *PoWThreadMng) Init() error + func (c *PoWThreadMng) StopMining() + type PoWWokerMng struct + func NewPoWWorkerMng(alloter itfcs.PoWExecute) *PoWWokerMng + func (c *PoWWokerMng) Config() itfcs.PoWConfig + func (w *PoWWokerMng) CloseUploadHashrate() + func (w *PoWWokerMng) DoMining(input *itfcs.PoWStuffOverallData) (*itfcs.PoWResultData, error) + func (w *PoWWokerMng) Init() error + func (w *PoWWokerMng) StopMining()