Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

small fix in address with no txouts #7

Merged
merged 1 commit into from

2 participants

@matiu
Owner

No description provided.

@colkito colkito merged commit fbe16ed into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 28, 2014
  1. @matiu
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/models/Address.js
View
6 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,
Something went wrong with that request. Please try again.