Home Reference Source
public class | source

MiningTransactionsSelector

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
Private Members
private

Method Summary

Public Methods
public

selectNextTransactions(miningFeePerByte: *): *

public

validateTransaction(transaction: *, miningFeePerByte: *): boolean

Private Methods
private

_countAddresses(unencodedAddress: *, from: boolean, to: boolean): *

Public Constructors

public constructor() source

Public Members

public blockchain: * source

Private Members

private _transactions: *[] source

Public Methods

public selectNextTransactions(miningFeePerByte: *): * source

Params:

NameTypeAttributeDescription
miningFeePerByte *

Return:

*

public validateTransaction(transaction: *, miningFeePerByte: *): boolean source

Params:

NameTypeAttributeDescription
transaction *
miningFeePerByte *

Return:

boolean

Private Methods

private _countAddresses(unencodedAddress: *, from: boolean, to: boolean): * source

Params:

NameTypeAttributeDescription
unencodedAddress *
from boolean
  • optional
  • default: false
to boolean
  • optional
  • default: false

Return:

*