From c14ec5a5b44faa0703330c74674be8824685f10e Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 28 Feb 2014 17:56:07 -0300 Subject: [PATCH] small fix in address with no txouts --- app/models/Address.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/Address.js b/app/models/Address.js index aef9c255..952d31a7 100644 --- a/app/models/Address.js +++ b/app/models/Address.js @@ -96,11 +96,11 @@ function spec() { async.eachLimit(txOut,CONCURRENCY,function (txItem, a_c) { db.fromIdInfoSimple(txItem.txid, function(err, info) { - var scriptPubKey = self._getScriptPubKey(info.hex, txItem.index); - // we are filtering out even unconfirmed spents! // add || !txItem.spentIsConfirmed - if (!txItem.spentTxId) { + + if (!txItem.spentTxId && info && info.hex) { + var scriptPubKey = self._getScriptPubKey(info.hex, txItem.index); ret.push({ address: self.addrStr, txid: txItem.txid,