C# Класс BitMaker.Miner.Cpu.CpuMiner

CPU miner base class which provides a place to plug in the search algorithm.
Наследование: IMiner
Показать файл Открыть проект

Открытые методы

Метод Описание
Search ( Work work, uint round1State, byte round1Block2, uint round2State, byte round2Block1 ) : uint?

Searches a set of broken apart work for a nonce solution, and returns it. If no solution is found, returns null.

Start ( ) : void

Starts a single thread to pull and process work.

Stop ( ) : void

Stops the miner from running.

Защищенные методы

Метод Описание
CpuMiner ( IMinerContext context, CpuDevice cpu ) : System

Initializes a new instance.

Приватные методы

Метод Описание
PrepareWork ( Work work, byte &round1Blocks, uint &round1State, byte &round2Blocks, uint &round2State ) : void

Prepares the buffers for processing a work item.

Work ( Work work ) : void

Attempts to solve the given work with the specified solver.

WorkThread ( ) : void

Entry point for a standard work thread.

Описание методов

CpuMiner() защищенный Метод

Initializes a new instance.
protected CpuMiner ( IMinerContext context, CpuDevice cpu ) : System
context IMinerContext
cpu CpuDevice
Результат System

Search() публичный абстрактный Метод

Searches a set of broken apart work for a nonce solution, and returns it. If no solution is found, returns null.
public abstract Search ( Work work, uint round1State, byte round1Block2, uint round2State, byte round2Block1 ) : uint?
work Work
round1State uint
round1Block2 byte
round2State uint
round2Block1 byte
Результат uint?

Start() публичный Метод

Starts a single thread to pull and process work.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops the miner from running.
public Stop ( ) : void
Результат void