Home Reference Source
public class | source

PoolStatistics

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

emitter: *

public
public
public
public
public
public
public
public
public
Private Members
private

_db: *

private
private
private

Method Summary

Public Methods
public

addStatistics(hashes: *)

public
public
public
Private Methods
private

async _clear(): boolean

private

async _load(): boolean

private
private

async _save()

Public Constructors

public constructor() source

Public Members

public POOL_STATISTICS_MEAN_VALUES: number source

public POOL_STATISTICS_TIME: number source

public emitter: * source

public poolBlocksBeingConfirmed: number source

public poolBlocksConfirmed: number source

public poolBlocksConfirmedAndPaid: number source

public poolBlocksUnconfirmed: number source

public poolHashes: number source

public poolHashesNow: number source

public poolManagement: * source

public poolMinersOnline: * source

public poolTimeRemaining: number source

Private Members

private _db: * source

private _interval: * source

private _poolHashesLast: *[] source

private _saveInterval: * source

Public Methods

public addStatistics(hashes: *) source

Params:

NameTypeAttributeDescription
hashes *

public clearInterval() source

public initializePoolStatistics(): * source

Return:

*

public startInterval() source

Private Methods

private async _clear(): boolean source

Return:

boolean

private async _load(): boolean source

Return:

boolean

private _poolStatisticsInterval() source

private async _save() source