Merge pull request #7 from bitpay/bug/address

small fix in address with no txouts
This commit is contained in:
Mario Colque 2014-02-28 19:00:16 -02:00
commit fbe16eda9f
1 changed files with 3 additions and 3 deletions

View File

@ -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,