Only add tx to cache if it has at least 6 transactions

This commit is contained in:
Sky Young 2018-06-08 15:48:39 -07:00
parent 224733811c
commit b081c0a5f8
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ TransactionService.prototype.getTransaction = function(txid, options, callback)
if (err) {
return callback(err);
}
if (tx) {
if (tx && tx.confirmations >= 6) {
self._cacheTx.set(txid, tx);
}
callback(err, tx);

View File

@ -5,7 +5,7 @@
"node": ">=8.0.0"
},
"author": "BitPay <dev@bitpay.com>",
"version": "5.0.0-beta.67",
"version": "5.0.0-beta.68",
"main": "./index.js",
"repository": "git://github.com/oipwg/flocore-node.git",
"homepage": "https://github.com/oipwg/flocore-node",