use scriptPubKeyCached!
This commit is contained in:
parent
437b9e40ca
commit
fe4c7fac8d
@ -562,6 +562,8 @@ TransactionDb.prototype.fillScriptPubKey = function(txouts, cb) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
// Complete utxo info
|
// Complete utxo info
|
||||||
async.eachLimit(txouts, CONCURRENCY, function(txout, a_c) {
|
async.eachLimit(txouts, CONCURRENCY, function(txout, a_c) {
|
||||||
|
if (txout.scriptPubKeyCached) return a_c();
|
||||||
|
|
||||||
self.fromIdInfoSimple(txout.txid, function(err, info) {
|
self.fromIdInfoSimple(txout.txid, function(err, info) {
|
||||||
if (!info || !info.vout) return a_c(err);
|
if (!info || !info.vout) return a_c(err);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user