Home Reference Source
public class | source

PoolDataBlockInformationMinerInstance

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

address: *

public
public get

miner: *

public get
public
public
public
public set
public get

reward: *

public
public

socket: *

public
public set
public get
public
Private Members
private
private
private
private

Method Summary

Public Methods
public

adjustDifficulty(difficulty: *, useDeltaTime: boolean)

public

calculateDifficulty(workHash: *)

public

calculateReward(useDeltaTime: boolean): *

public
public

deserializeBlockInformationMinerInstance(buffer: *, offset: number, version: *): *

public
public
public

async validateWorkHash(workHash: *, workNonce: *, prevBlock: *): boolean

public

Public Constructors

public constructor() source

Public Members

public get address: * source

public blockInformation: * source

public get miner: * source

public get minerAddress: * source

public minerInstance: * source

public minerInstanceTotalDifficulty: * source

public poolManagement: * source

public set reward source

public get reward: * source

public rewardForReferral: number source

public socket: * source

public workBlock: * source

public set workHash source

public get workHash: * source

public workHashNonce: * source

Private Members

private _prevRewardInitial: number source

private _reward: number source

private _workDifficulty: * source

private _workHash: * source

Public Methods

public adjustDifficulty(difficulty: *, useDeltaTime: boolean) source

Params:

NameTypeAttributeDescription
difficulty *
useDeltaTime boolean
  • optional
  • default: false

public calculateDifficulty(workHash: *) source

Params:

NameTypeAttributeDescription
workHash *

public calculateReward(useDeltaTime: boolean): * source

Params:

NameTypeAttributeDescription
useDeltaTime boolean
  • optional
  • default: false

Return:

*

public cancelReward() source

public deserializeBlockInformationMinerInstance(buffer: *, offset: number, version: *): * source

Params:

NameTypeAttributeDescription
buffer *
offset number
  • optional
  • default: 0
version *

Return:

*

public destroyBlockInformationMinerInstance() source

public serializeBlockInformationMinerInstance(): * source

Return:

*

public async validateWorkHash(workHash: *, workNonce: *, prevBlock: *): boolean source

Params:

NameTypeAttributeDescription
workHash *
workNonce *
prevBlock *

Return:

boolean

public async wasBlockMined(): boolean source

Return:

boolean