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);