@sec-block/secjs-transactionpool
sec blockchain transaction-pool lib
Last updated a year ago by zuweihan1992 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sec-block/secjs-transactionpool 
SYNC missed versions from official npm registry.

JavaScript Style Guide

[JavaScript Style Guide]

SECTransactionPool

This package is for sec blockchain transaction pool

new SECTransactionPool(config)

create a transaction pool with config, such as transaction pool of token chain or transaction chain

Param Type
config Object

secTransactionPool.addTxIntoPool(transaction)

save the transaction into local transaction pool

Kind: instance method of SECTransactionPool

Param Type
transaction Object

secTransactionPool.updateBlockHashArray(blockChain)

upate the block hash array this blockChainHashBuffer is for checking the transaction in transaction pool, just compare the TxHash

Kind: instance method of SECTransactionPool

Param Type
blockChain Object

secTransactionPool.compareTxWithHashTable()

remove transactions in transaction pool, if they are already upload to blockchain

Kind: instance method of SECTransactionPool

secTransactionPool.addTxFromOtherPeerIntoPool(txFromOtherPeer)

to update the local transaction pool with transactions from other peers

Kind: instance method of SECTransactionPool

Param Type
txFromOtherPeer Object

secTransactionPool.getTxStatus(transaction) => Status

get transaction status: pending, success, error

Kind: instance method of SECTransactionPool

Param Type
transaction Object

secTransactionPool.getAllTxFromPool() => Array

return all transaction from pool

Kind: instance method of SECTransactionPool

secTransactionPool.clear()

clear the transaction pool

Kind: instance method of SECTransactionPool

Current Tags

  • 1.0.10                                ...           latest (a year ago)

10 Versions

  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |