MinerWorkerPool
Expression Extends:
class MinerWorkerPool extends IWorker.Pool(MinerWorker)
Mixin Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
cycleWait: number |
|
public set |
cycleWait(cycleWait: number) |
|
public get |
noncesPerRun: number |
|
public set |
noncesPerRun(nonces: number) |
|
public get |
runsPerCycle: number |
|
public set |
runsPerCycle(runsPerCycle: number) |
Method Summary
Public Methods | ||
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
|
public |
async startMiningOnBlock(block: Block, shareCompact: number) |
|
public |
stop() |
Public Constructors
public constructor() source
Public Members
public get cycleWait: number source
public set cycleWait(cycleWait: number) source
public get noncesPerRun: number source
public set noncesPerRun(nonces: number) source
public get runsPerCycle: number source
public set runsPerCycle(runsPerCycle: number) source
Public Methods
public off(type: string, id: number) source
Params:
Name | Type | Attribute | Description |
type | string | ||
id | number |
public on(type: string, callback: Function): number source
Params:
Name | Type | Attribute | Description |
type | string | ||
callback | Function |
Return:
number |
public async startMiningOnBlock(block: Block, shareCompact: number) source
Params:
Name | Type | Attribute | Description |
block | Block | ||
shareCompact | number |
|
target of a share, in compact format. |