Home Reference Source
public class | source

TransactionsPendingQueue

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

db: *

public

list: *[]

public
public
public

Method Summary

Public Methods
public

findPendingIdenticalTransaction(transaction: *): *

public

findPendingTransaction(transaction: *): *

public

includePendingTransaction(transaction: *, exceptSockets: *, avoidValidation: boolean): boolean

public

propagateTransaction(transaction: *, exceptSocket: *)

public

searchPendingTransactionByTxId(transactionId: *): *

Private Methods
private

_insertPendingTransaction(transaction: *)

private
private

Public Constructors

public constructor() source

Public Members

public blockchain: * source

public db: * source

public list: *[] source

public pendingQueueSavingManager: * source

public transactions: * source

public transactionsProtocol: * source

Public Methods

public findPendingIdenticalTransaction(transaction: *): * source

Params:

NameTypeAttributeDescription
transaction *

Return:

*

public findPendingTransaction(transaction: *): * source

Params:

NameTypeAttributeDescription
transaction *

Return:

*

public includePendingTransaction(transaction: *, exceptSockets: *, avoidValidation: boolean): boolean source

Params:

NameTypeAttributeDescription
transaction *
exceptSockets *
avoidValidation boolean
  • optional
  • default: false

Return:

boolean

public propagateTransaction(transaction: *, exceptSocket: *) source

Params:

NameTypeAttributeDescription
transaction *
exceptSocket *

public searchPendingTransactionByTxId(transactionId: *): * source

Params:

NameTypeAttributeDescription
transactionId *

Return:

*

Private Methods

private _insertPendingTransaction(transaction: *) source

Params:

NameTypeAttributeDescription
transaction *

private _removeOldTransactions() source

private _removePendingTransaction(transaction: *): boolean source

Params:

NameTypeAttributeDescription
transaction *

Return:

boolean