C# 클래스 BitMaker.Miner.Cpu.CpuMiner

CPU miner base class which provides a place to plug in the search algorithm.
상속: IMiner
파일 보기 프로젝트 열기: wasabii/BitMaker

공개 메소드들

메소드 설명
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