From fe4c7fac8d742817b8fc91999289eb6d64eeb27c Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 22 Feb 2016 14:45:03 -0300 Subject: [PATCH] use scriptPubKeyCached! --- lib/TransactionDb.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/TransactionDb.js b/lib/TransactionDb.js index 0725e71..c2f2d78 100644 --- a/lib/TransactionDb.js +++ b/lib/TransactionDb.js @@ -562,6 +562,8 @@ TransactionDb.prototype.fillScriptPubKey = function(txouts, cb) { var self = this; // Complete utxo info async.eachLimit(txouts, CONCURRENCY, function(txout, a_c) { + if (txout.scriptPubKeyCached) return a_c(); + self.fromIdInfoSimple(txout.txid, function(err, info) { if (!info || !info.vout) return a_c(err);