Home Reference Source
public class | source

InterfaceBlockchainBlockDataTransactions

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public

Method Summary

Public Methods
public
public
public
public

deserializeTransactions(buffer: *, offset: *, onlyHeader: boolean): *

public
public
public
public

processBlockDataTransactions(block: *, multiplicationFactor: number, revertActions: *, showUpdate: *): boolean

public

serializeTransactions(onlyHeader: boolean): *

public
public
public

async validateTransactions(blockHeight: *, blockValidationType: *): boolean

Private Methods
private
private

_processBlockDataTransaction(blockHeight: *, transaction: *, multiplicationFactor: number, minerAddress: *, revertActions: *, showUpdate: *): boolean

Public Constructors

public constructor() source

Public Members

public blockData: * source

public hashTransactions: * source

public pendingTransactionsWereIncluded: boolean source

public transactions: * source

public transactionsLoaded: boolean source

Public Methods

public calculateFees(): * source

Return:

*

public calculateHashTransactions(): * source

Return:

*

public confirmTransactions() source

public deserializeTransactions(buffer: *, offset: *, onlyHeader: boolean): * source

Params:

NameTypeAttributeDescription
buffer *
offset *
onlyHeader boolean
  • optional
  • default: false

Return:

*

public destroyBlockDataTransactions() source

public freeTransactionsFromMemory() source

public markBlockDataTransactionsToBeInPending() source

public processBlockDataTransactions(block: *, multiplicationFactor: number, revertActions: *, showUpdate: *): boolean source

Params:

NameTypeAttributeDescription
block *
multiplicationFactor number
  • optional
  • default: 1
revertActions *
showUpdate *

Return:

boolean

public serializeTransactions(onlyHeader: boolean): * source

Params:

NameTypeAttributeDescription
onlyHeader boolean
  • optional
  • default: false

Return:

*

public unconfirmTransactions() source

public validateDuplicateTransactions(): boolean source

Return:

boolean

public async validateTransactions(blockHeight: *, blockValidationType: *): boolean source

Params:

NameTypeAttributeDescription
blockHeight *
blockValidationType *

Return:

boolean

Private Methods

private _computeBlockDataTransactionsConcatenate(): * source

Return:

*

private _processBlockDataTransaction(blockHeight: *, transaction: *, multiplicationFactor: number, minerAddress: *, revertActions: *, showUpdate: *): boolean source

Params:

NameTypeAttributeDescription
blockHeight *
transaction *
multiplicationFactor number
  • optional
  • default: 1
minerAddress *
  • optional
  • default: undefined
revertActions *
  • optional
  • default: undefined
showUpdate *

Return:

boolean