Home Reference Source
public class | source

InterfaceBlockchainAgentBasic

Direct Subclass:

InterfaceBlockchainAgent

Agent controls the Synchronization

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public get

consensus: *: *

Consensus Status - if needs consensus or not

public set
Private Members
private
private
private
private
private
private

_status: *

Method Summary

Public Methods
public

setBlockchain(blockchain: *)

Private Methods
private

async _initializeConsensus(newConsensus: *)

Public Constructors

public constructor() source

Public Members

public blockchain: * source

public get consensus: *: * source

Consensus Status - if needs consensus or not

Return:

*

public set consensus source

Private Members

private _consensus: * source

private _eventEmitter: * source

private _intervalVerifyConsensus: * source

private _prevBlocks: number source

private _prevDate: number source

private _status: * source

Public Methods

public setBlockchain(blockchain: *) source

Params:

NameTypeAttributeDescription
blockchain *

Private Methods

private async _initializeConsensus(newConsensus: *) source

Params:

NameTypeAttributeDescription
newConsensus *