Home Reference Source
public class | source

PoolDataBlockInformation

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

block: *

public
public
public
public
public

date: *

public

height: *

public

index: *

public
public
public
public set
public
Private Members
private

Method Summary

Public Methods
public

adjustBlockInformationDifficulty(difficulty: *, hash: *)

public

adjustBlockInformationDifficultyBestTarget(difficulty: *, prevDifficulty: *)

public
public

async deserializeBlockInformation(buffer: *, offset: number): *

public
public
public
public

totalDifficultyMinus(value: *, avoidToCalculateRemaining: boolean)

public
Private Methods
private

_addBlockInformationMinerInstance(minerInstance: *): *

private
private
private

_findBlockInformationMinerInstance(minerInstance: *): *

Public Constructors

public constructor() source

Public Members

public bestHash: * source

public block: * source

public blockInformationMinersInstances: *[] source

public confirmations: number source

public confirmationsFailsTrials: number source

public confirmed: boolean source

public date: * source

public height: * source

public index: * source

public payout: boolean source

public poolManagement: * source

public targetDifficulty: * source

public set timeRemaining source

public totalDifficulty: * source

Private Members

private _timeRemaining: * source

Public Methods

public adjustBlockInformationDifficulty(difficulty: *, hash: *) source

Params:

NameTypeAttributeDescription
difficulty *
hash *

public adjustBlockInformationDifficultyBestTarget(difficulty: *, prevDifficulty: *) source

Params:

NameTypeAttributeDescription
difficulty *
prevDifficulty *

public calculateTargetDifficulty() source

public async deserializeBlockInformation(buffer: *, offset: number): * source

Params:

NameTypeAttributeDescription
buffer *
offset number
  • optional
  • default: 0

Return:

*

public destroyPoolDataBlockInformation() source

public getRewardBlockInformationMinerInstance(minerInstance: *): * source

Params:

NameTypeAttributeDescription
minerInstance *

Return:

*

public serializeBlockInformation(): * source

Return:

*

public totalDifficultyMinus(value: *, avoidToCalculateRemaining: boolean) source

Params:

NameTypeAttributeDescription
value *
avoidToCalculateRemaining boolean
  • optional
  • default: false

public totalDifficultyPlus(value: *) source

Params:

NameTypeAttributeDescription
value *

Private Methods

private _addBlockInformationMinerInstance(minerInstance: *): * source

Params:

NameTypeAttributeDescription
minerInstance *

Return:

*

private _calculateTimeRemaining(): number source

Return:

number

private _deleteBlockInformationMinerInstance(minerInstance: *) source

Params:

NameTypeAttributeDescription
minerInstance *

private _findBlockInformationMinerInstance(minerInstance: *): * source

Params:

NameTypeAttributeDescription
minerInstance *

Return:

*