Home Reference Source
public class | source

InterfaceBlockchainTransactionsProtocol

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

async downloadTransaction(socket: *, txId: *): *

public

async downloadTransactions(socket: *, start: *, count: *, max: *): boolean

public
public

propagateNewPendingTransaction(transaction: *, exceptSockets: *)

Private Methods
private

_newSocketCreateProtocol(nodesListObject: *): boolean

Public Constructors

public constructor() source

Public Members

public blockchain: * source

public transactionsDownloadingManager: * source

public transactionsForPropagation: * source

Public Methods

public async downloadTransaction(socket: *, txId: *): * source

Params:

NameTypeAttributeDescription
socket *
txId *

Return:

*

public async downloadTransactions(socket: *, start: *, count: *, max: *): boolean source

Params:

NameTypeAttributeDescription
socket *
start *
count *
max *

Return:

boolean

public async initializeTransactionsPropagation(socket: *) source

Params:

NameTypeAttributeDescription
socket *

public propagateNewPendingTransaction(transaction: *, exceptSockets: *) source

Params:

NameTypeAttributeDescription
transaction *
exceptSockets *

Private Methods

private _newSocketCreateProtocol(nodesListObject: *): boolean source

Params:

NameTypeAttributeDescription
nodesListObject *

Return:

boolean