Only add tx to cache if it has at least 6 transactions
This commit is contained in:
parent
224733811c
commit
b081c0a5f8
@ -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);
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user