Skip to content

Commit

Permalink
Fixed bug in interpretation of JSON from blockchain.info/unspent.
Browse files Browse the repository at this point in the history
  • Loading branch information
anfedorov committed Jun 18, 2012
1 parent 8265c55 commit e42849b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tx.js
Expand Up @@ -305,7 +305,7 @@ function tx_parseBCI(data, address) {
var value = new BigInteger('' + o.value, 10);
if (!(lilendHash in unspenttxs))
unspenttxs[lilendHash] = {};
unspenttxs[lilendHash][i] = {amount: value, script: script};
unspenttxs[lilendHash][o.tx_output_n] = {amount: value, script: script};
balance = balance.add(value);
}
return {balance:balance, unspenttxs:unspenttxs};
Expand Down

0 comments on commit e42849b

Please sign in to comment.