use scriptPubKeyCached!

This commit is contained in:
Matias Alejo Garcia 2016-02-22 14:45:03 -03:00
parent 437b9e40ca
commit fe4c7fac8d

View File

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