Home Reference Source
public class | source

MinerPoolMining

Extends:

InheritedPoolMining → MinerPoolMining

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
Private Members
private
private
private
private

_miningWork: {"block": *, "blockId": *, "start": *, "end": *, "height": *, "difficultyTarget": *, "serializedHeader": *, "resolved": boolean, "poolSocket": *}

private

Method Summary

Public Methods
public

async mineNextBlock(suspend: *)

public

updatePoolMiningWork(work: *, poolSocket: *)

Private Methods
private
private
private

async _run(): *

private

async _setAddress(newAddress: *, save: *, skipChangingAddress: boolean)

private
private

Public Constructors

public constructor() source

Public Members

public minerPoolManagement: * source

public resetForced: boolean source

Private Members

private _checkForWorkInterval: * source

private _isBeingMining: boolean source

private _minerAddress: * source

private _miningWork: {"block": *, "blockId": *, "start": *, "end": *, "height": *, "difficultyTarget": *, "serializedHeader": *, "resolved": boolean, "poolSocket": *} source

private _unencodedMinerAddress: * source

Public Methods

public async mineNextBlock(suspend: *) source

Params:

NameTypeAttributeDescription
suspend *

public updatePoolMiningWork(work: *, poolSocket: *) source

Params:

NameTypeAttributeDescription
work *
poolSocket *

Private Methods

private async _checkForWorkIntervalCallback() source

private _getBlockSuffix(): * source

Return:

*

private async _run(): * source

Return:

*

private async _setAddress(newAddress: *, save: *, skipChangingAddress: boolean) source

Params:

NameTypeAttributeDescription
newAddress *
save *
skipChangingAddress boolean
  • optional
  • default: false

private _startMinerPoolMining() source

private _stopMinerPoolMining() source