{"_id":"@biut-block/biutjs-transactionpool","_rev":"2-255b96392abcc3cb30e43f41b30b3c01","name":"@biut-block/biutjs-transactionpool","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.10":{"name":"@biut-block/biutjs-transactionpool","version":"1.0.10","description":"biut blockchain transaction-pool lib","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/BIUT-Block/biutjs-transactionpool.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/BIUT-Block/biutjs-transactionpool/issues"},"homepage":"https://github.com/BIUT-Block/biutjs-transactionpool#README","dependencies":{"chai":"^4.1.2"},"gitHead":"f7c6651c9b8c2ac74b5c8fe763cd96e9f11e1c4a","_id":"@biut-block/biutjs-transactionpool@1.0.10","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"},"dist":{"integrity":"sha512-2ERpZiwX4gZ4wtyxDBJuNijDtqDKVo3FNvobC4e6SpIRIFUc7O+9bC9l1x5m97MjfnKo/HiSUv68VVg7MVg/NQ==","shasum":"69d4b9de89165359d49619cb45c72b4dc1791733","tarball":"https://registry.npmjs.org/@biut-block/biutjs-transactionpool/-/biutjs-transactionpool-1.0.10.tgz","fileCount":5,"unpackedSize":9581,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1URGCRA9TVsSAnZWagAAfCAP/3fYpZrYTG/76iUBswiT\n6IroT7oqdK8uGBuab1bYiDJRmOv4s0d1e78QiAdKDGpMEr/sc0QHmA5HXg6q\nDZjEO0cT0tYmH8GR56oAEeFOKbUYTUxWaJlu2G1nhWoq5lcWpRN3l8+qRJj3\nLvdHmcGDuHcFKCqq8CY9EeJqIpqoS5BLssXWTCaEZkMZ9gkwUGZ/i+5M7l/D\nGCWn+qxYoMMKf680Phjkh3R7Elf6o+q17WYtipfHovMIRbunu+2DQ3t0QQ7w\nYe+QpTISIAT35xf8mlguoaHz8bu4qh1ecRQNOtmIV6fAuNyGz8LngdEg5/St\n5I1RBHh6x0Q/YmEm9AwRPTZvUsida1GlU/3fR7XI+NGnfG1UjGl3qp6aWaCG\nlSHKSekx/8ZooHmmMNeDVVy1kDXiozStjPwiCNt9oqGRVzD24nOgHp4DLaVA\n8EpRsOmKq1cEFUTOWNHk/0SCO70ce24Ko81o6oy8hES53DMscclqCfd9LIJx\nx4KdctoUl9HbjW+z/g10PcyvTs7vlYeVS7XmYzcaULNS9nviQJU3YMnsZmj5\n4wTyRGzOJ9fxBV9E1pT3xjbNeSVG9eJH+upP6vhhYQu8E776dR8HmJTmbK5R\nsguvloBcGcZCVDTCuYnuiz51xvUj/nb8tlqhmHxU9KU1hf15eeb5GnswvYMH\nJmCU\r\n=5ec6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdIu8WaFaWeog3iBojJhXHmZkdiBMko6AHGW3KZjLY4AiAMVnVdmNvhnWJyOEcV6mANERuNL8x/mi4stVbSTZtm1g=="}]},"maintainers":[{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"},{"name":"tornadoming","email":"ming1992liu@gmail.com"},{"name":"g277321","email":"g277321@gmail.com"},{"name":"feiminhao","email":"fei.minhao1990@gmail.com"},{"name":"abysmli","email":"abysmli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/biutjs-transactionpool_1.0.10_1557480518194_0.18910990475740874"},"_hasShrinkwrap":false},"1.0.0":{"name":"@biut-block/biutjs-transactionpool","version":"1.0.0","description":"biut blockchain transaction-pool lib","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/BIUT-Block/biutjs-transactionpool.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/BIUT-Block/biutjs-transactionpool/issues"},"homepage":"https://github.com/BIUT-Block/biutjs-transactionpool#README","dependencies":{"chai":"^4.1.2"},"gitHead":"74ef1b61c22c74f4251e428f7d3ccee0b753bc2e","_id":"@biut-block/biutjs-transactionpool@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"},"dist":{"integrity":"sha512-rlHUxMGDzzSv7dlXb1rWohXHQUYKhfrxjKMbFHhVXsO2a6ly4pY/Jt3sr6GReAbSUn49Y7I0K36y9MPGE8ZxTA==","shasum":"7e5a2126c5028d3965bb48c701e2780f7a70918c","tarball":"https://registry.npmjs.org/@biut-block/biutjs-transactionpool/-/biutjs-transactionpool-1.0.0.tgz","fileCount":5,"unpackedSize":9580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1VS1CRA9TVsSAnZWagAAktkP/3HXwaGqKC8vmsoM+x7Y\nI6qlUe3x+zrlr5smP8iMPX0W5wD6UqkE1F1PhjZcoz80Dhlp6EULptU08dMZ\nK+XBIeGsV/nEqZi7KZHLjVha3i/3U4VjY6InrTfwLy3PH3flz0CK9k4QAEJH\nKnugmll+9gIogHHibnAdh2DnjAgPc2G8r88hdZPfHGgoSBP9MsX0ezqzUb44\nCAbfF3VhKQv+2qiKezRMG/s5SBz3nJ2yT/96T0C+Py4g3Vz6IwLcd/D6hguh\n8K4CRo8uVX7cHMeJp7xpiVru71oZXauIlu02DBLi9+EjjXreyR6IkGg87XPM\noTie0/2Xs/3uNoDtOUlW4SZ8cZbGT/QecRfmDQlUDi3K/3zrNqDG8/Nrc2Ti\n+GrqMYMspiP0M4aFqq9P+nsX1fqJj5wUxa5KZuTEH7SMHx2SyrlcClY/HhY4\n/MvDP71D/gfhUWkGPAqPEL9qOKgJeth+vykTzZPag5G1hc28oqv3QtT7oVZJ\nqrtN9Gq1UrZhxW4iiDpPCFxCUlxlAPu7PSGJG5EkXMDhOCwLew1vhk/msPYq\nNNS0MouO7+cJSTVqsftgNPwFwwsNBIz7Xht6sY0xsnmqqhWLG3OOcJATb+Om\n6oaAhI4TfEa3gvnpd7C8mBaAwB8YrTsPZ9Lib0+Iy8iUQiM/BvPs988YgrLu\nheDe\r\n=Lp2F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNVFsBk/fvpexNCPTcufMsMH7/2tVp1A+l2L9OeK+x/AiAN96ffUhJ7xAMeD8X70FLkSDLuPRMvUGUrLZrb+vAgcQ=="}]},"maintainers":[{"name":"abysmli","email":"abysmli@gmail.com"},{"name":"feiminhao","email":"fei.minhao1990@gmail.com"},{"name":"g277321","email":"g277321@gmail.com"},{"name":"tornadoming","email":"ming1992liu@gmail.com"},{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/biutjs-transactionpool_1.0.0_1557484724918_0.01592953884137871"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-10T09:28:38.005Z","1.0.10":"2019-05-10T09:28:38.313Z","modified":"2022-04-04T19:14:53.656Z","1.0.0":"2019-05-10T10:38:45.130Z"},"maintainers":[{"name":"abysmli","email":"abysmli@gmail.com"},{"name":"feiminhao","email":"fei.minhao1990@gmail.com"},{"name":"g277321","email":"g277321@gmail.com"},{"name":"tornadoming","email":"ming1992liu@gmail.com"},{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"}],"description":"biut blockchain transaction-pool lib","homepage":"https://github.com/BIUT-Block/biutjs-transactionpool#README","repository":{"type":"git","url":"git+https://github.com/BIUT-Block/biutjs-transactionpool.git"},"bugs":{"url":"https://github.com/BIUT-Block/biutjs-transactionpool/issues"},"license":"ISC","readme":"<a name=\"SECTransactionPool\"></a>\r\n\r\n[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) \r\n\r\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)]\r\n\r\n## SECTransactionPool\r\n\r\nThis package is for sec blockchain transaction pool\r\n\r\n<a name=\"SECTransactionPool\"></a>\r\n\r\n* [SECTransactionPool](#SECTransactionPool)\r\n    * [new SECTransactionPool(config)](#new_SECTransactionPool_new)\r\n    * [.addTxIntoPool(transaction)](#SECTransactionPool+addTxIntoPool)\r\n    * [.updateBlockHashArray(blockChain)](#SECTransactionPool+updateBlockHashArray)\r\n    * [.compareTxWithHashTable()](#SECTransactionPool+compareTxWithHashTable)\r\n    * [.addTxFromOtherPeerIntoPool(txFromOtherPeer)](#SECTransactionPool+addTxFromOtherPeerIntoPool)\r\n    * [.getTxStatus(transaction)](#SECTransactionPool+getTxStatus) => <code>Status</code>\r\n    * [.getAllTxFromPool()](#SECTransactionPool+getAllTxFromPool) => <code>Array</code>\r\n    * [.clear()](#SECTransactionPool+clear)\r\n\r\n<a name=\"new_SECTransactionPool_new\"></a>\r\n\r\n### new SECTransactionPool(config)\r\ncreate a transaction pool with config, such as transaction pool of token chain or transaction chain\r\n\r\n\r\n| Param | Type |\r\n| --- | --- |\r\n| config | <code>Object</code> | \r\n\r\n<a name=\"SECTransactionPool+addTxIntoPool\"></a>\r\n\r\n### secTransactionPool.addTxIntoPool(transaction)\r\nsave the transaction into local transaction pool\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n\r\n| Param | Type |\r\n| --- | --- |\r\n| transaction | <code>Object</code> | \r\n\r\n<a name=\"SECTransactionPool+updateBlockHashArray\"></a>\r\n\r\n### secTransactionPool.updateBlockHashArray(blockChain)\r\nupate the block hash array\r\nthis blockChainHashBuffer is for checking the transaction in transaction pool, just compare the TxHash\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n\r\n| Param | Type |\r\n| --- | --- |\r\n| blockChain | <code>Object</code> | \r\n\r\n<a name=\"SECTransactionPool+compareTxWithHashTable\"></a>\r\n\r\n### secTransactionPool.compareTxWithHashTable()\r\nremove transactions in transaction pool, if they are already upload to blockchain\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n<a name=\"SECTransactionPool+addTxFromOtherPeerIntoPool\"></a>\r\n\r\n### secTransactionPool.addTxFromOtherPeerIntoPool(txFromOtherPeer)\r\nto update the local transaction pool with transactions from other peers\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n\r\n| Param | Type |\r\n| --- | --- |\r\n| txFromOtherPeer | <code>Object</code> | \r\n\r\n<a name=\"SECTransactionPool+getTxStatus\"></a>\r\n\r\n### secTransactionPool.getTxStatus(transaction) => <code>Status</code>\r\nget transaction status: pending, success, error\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n\r\n| Param | Type |\r\n| --- | --- |\r\n| transaction | <code>Object</code> | \r\n\r\n<a name=\"SECTransactionPool+getAllTxFromPool\"></a>\r\n\r\n### secTransactionPool.getAllTxFromPool() => <code>Array</code>\r\nreturn all transaction from pool\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n<a name=\"SECTransactionPool+clear\"></a>\r\n\r\n### secTransactionPool.clear()\r\nclear the transaction pool\r\n\r\n**Kind**: instance method of [<code>SECTransactionPool</code>](#SECTransactionPool)  \r\n","readmeFilename":"README.md"}