Home Reference Source
public class | source

PoolConnectedMinersProtocol

Extends:

common/mining-pools/common/Pool-Protocol-List~PoolProtocolList → PoolConnectedMinersProtocol

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

list: *

public

Method Summary

Public Methods
public

addElement(socket: *, minerInstance: *)

public
Private Methods
private

_addConnectedMinerPool(socket: *, socketAddress: *, minerInstance: *)

private
private

Public Constructors

public constructor() source

Public Members

public connectedMiners: *[] source

public list: * source

public poolManagement: * source

Public Methods

public addElement(socket: *, minerInstance: *) source

Params:

NameTypeAttributeDescription
socket *
minerInstance *

public async startPoolConnectedMinersProtocol() source

Private Methods

private _addConnectedMinerPool(socket: *, socketAddress: *, minerInstance: *) source

Params:

NameTypeAttributeDescription
socket *
socketAddress *
minerInstance *

private async _subscribePoolConnectedMiners(socket: *): boolean source

Params:

NameTypeAttributeDescription
socket *

Return:

boolean

private _validatePoolMiner(socket: *): boolean source

Params:

NameTypeAttributeDescription
socket *

Return:

boolean