C# 클래스 BitMaker.Miner.Pool

Encapsulates access to a mining pool.
상속: IDisposable
파일 보기 프로젝트 열기: wasabii/BitMaker

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes of the pool and releases all resources associated with it.

GetWorkRpc ( IMiner miner, string comment ) : BitMaker.Miner.Work

Invokes the 'getwork' JSON method and parses the result into a new T:Work instance.

SubmitWorkRpc ( IMiner miner, BitMaker.Miner.Work work, string comment ) : bool

Invokes the 'getwork' JSON method, submitting the proposed work. Returns true if the service accepts the proposed work.

비공개 메소드들

메소드 설명
GetWorkLp ( IMiner miner, string comment ) : BitMaker.Miner.Work

Initiates a long-poll request for work.

Open ( Uri url, string method, IMiner miner, string comment ) : HttpWebRequest

Opens a web request.

OpenLp ( IMiner miner, string comment ) : HttpWebRequest

Creates a HttpWebRequest for long-polling.

OpenRpc ( IMiner miner, string comment ) : HttpWebRequest

Creates a HttpWebRequest for JSON-RPC.

ParseGetWork ( WebResponse webResponse ) : BitMaker.Miner.Work

Parses a WebResponse containing the results of a 'getwork' request.

Pool ( Uri url ) : System

Initializes a new instance.

RefreshThreadMain ( ) : void

Entry point for thread responsible for detecting changes in the current block number.

메소드 상세

Dispose() 공개 메소드

Disposes of the pool and releases all resources associated with it.
public Dispose ( ) : void
리턴 void

GetWorkRpc() 공개 메소드

Invokes the 'getwork' JSON method and parses the result into a new T:Work instance.
public GetWorkRpc ( IMiner miner, string comment ) : BitMaker.Miner.Work
miner IMiner
comment string
리턴 BitMaker.Miner.Work

SubmitWorkRpc() 공개 메소드

Invokes the 'getwork' JSON method, submitting the proposed work. Returns true if the service accepts the proposed work.
public SubmitWorkRpc ( IMiner miner, BitMaker.Miner.Work work, string comment ) : bool
miner IMiner
work BitMaker.Miner.Work
comment string
리턴 bool