Home Reference Source
public class | source

PoolWork

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

lastBlockElement: {"block": *, "blockId": *, "instances": *}

public
public
public
public
public
Private Members
private
private

Method Summary

Public Methods
public

findBlockById(blockId: *, blockHeight: *): *

public
public
public
Private Methods
private

Public Constructors

public constructor() source

Public Members

public blockchain: * source

public lastBlock: * source

public lastBlockElement: {"block": *, "blockId": *, "instances": *} source

public lastBlockId: number source

public lastBlockNonce: number source

public lastBlockPromise: * source

public lastBlockSerialization: * source

public poolManagement: * source

Private Members

private _blocksList: *[] source

private _garbageCollectorInterval: * source

Public Methods

public findBlockById(blockId: *, blockHeight: *): * source

Params:

NameTypeAttributeDescription
blockId *
blockHeight *

Return:

*

public getNextBlockForWork(): * source

Return:

*

public startGarbageCollector() source

public stopGarbageCollector() source

Private Methods

private _garbageCollector() source