Home Reference Source
public class | source

InterfaceBlockchainProtocol

Blockchain Protocol

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public

Method Summary

Public Methods
public

async askBlockchain(socket: *): boolean

public
public
public

initialize(params: *)

public

setBlockchain(blockchain: *)

Private Methods
private

_initializeNewSocket(nodesListObject: *)

private

_uninitializeSocket(nodesListObject: *)

private

Public Constructors

public constructor() source

Public Members

public acceptBlockHeaders: boolean source

public acceptBlocks: boolean source

public blockchain: * source

public forkSolver: * source

public forksManager: * source

public tipsManager: * source

Public Methods

public async askBlockchain(socket: *): boolean source

Params:

NameTypeAttributeDescription
socket *

Return:

boolean

public createForkSolver() source

public createForksManager() source

public initialize(params: *) source

Params:

NameTypeAttributeDescription
params *

public setBlockchain(blockchain: *) source

Params:

NameTypeAttributeDescription
blockchain *

Private Methods

private _initializeNewSocket(nodesListObject: *) source

Params:

NameTypeAttributeDescription
nodesListObject *

private _uninitializeSocket(nodesListObject: *) source

Params:

NameTypeAttributeDescription
nodesListObject *

private _validateBlockchainHeader(data: *) source

Params:

NameTypeAttributeDescription
data *