small fix in address with no txouts
This commit is contained in:
parent
1af6bb7a02
commit
c14ec5a5b4
|
@ -96,11 +96,11 @@ function spec() {
|
||||||
async.eachLimit(txOut,CONCURRENCY,function (txItem, a_c) {
|
async.eachLimit(txOut,CONCURRENCY,function (txItem, a_c) {
|
||||||
db.fromIdInfoSimple(txItem.txid, function(err, info) {
|
db.fromIdInfoSimple(txItem.txid, function(err, info) {
|
||||||
|
|
||||||
var scriptPubKey = self._getScriptPubKey(info.hex, txItem.index);
|
|
||||||
|
|
||||||
// we are filtering out even unconfirmed spents!
|
// we are filtering out even unconfirmed spents!
|
||||||
// add || !txItem.spentIsConfirmed
|
// add || !txItem.spentIsConfirmed
|
||||||
if (!txItem.spentTxId) {
|
|
||||||
|
if (!txItem.spentTxId && info && info.hex) {
|
||||||
|
var scriptPubKey = self._getScriptPubKey(info.hex, txItem.index);
|
||||||
ret.push({
|
ret.push({
|
||||||
address: self.addrStr,
|
address: self.addrStr,
|
||||||
txid: txItem.txid,
|
txid: txItem.txid,
|
||||||
|
|
Loading…
Reference in New Issue