diff --git a/lib/explorer.js b/lib/explorer.js index 2a6739b69..d4f5533a4 100644 --- a/lib/explorer.js +++ b/lib/explorer.js @@ -497,9 +497,10 @@ module.exports = { module.exports.syncLoop(vout.length, function (loop) { var i = loop.iteration(); // make sure vout has an address - if (vout[i].scriptPubKey.type != 'nonstandard' && vout[i].scriptPubKey.type != 'nulldata') { + if (vout[i].scriptPubKey.type != 'nonstandard' && vout[i].scriptPubKey.type != 'nulldata' && vout[i].scriptPubKey.type != 'pubkey') { // check if vout address is unique, if so add it array, if not add its amount to existing index //console.log('vout:' + i + ':' + txid); + //console.log(vout[i]); module.exports.is_unique(arr_vout, vout[i].scriptPubKey.addresses[0], function(unique, index) { if (unique == true) { // unique vout