diff --git a/app/controllers/addresses.js b/app/controllers/addresses.js index aee2fe9..425602b 100644 --- a/app/controllers/addresses.js +++ b/app/controllers/addresses.js @@ -211,7 +211,6 @@ exports.multitxs = function(req, res, next) { }, { ignoreCache: req.param('noCache'), includeTxInfo: true, - dontFillSpent: true, }); }, function(err) { // finished callback if (err) return common.handleErrors(err, res); diff --git a/lib/TransactionDb.js b/lib/TransactionDb.js index aa791b8..c80c132 100644 --- a/lib/TransactionDb.js +++ b/lib/TransactionDb.js @@ -448,8 +448,6 @@ TransactionDb.prototype._parseAddrData = function(k, data, ignoreCache) { }; -// opts.dontFillSpent - TransactionDb.prototype.fromAddr = function(addr, opts, cb) { opts = opts || {}; var self = this; @@ -475,9 +473,12 @@ TransactionDb.prototype.fromAddr = function(addr, opts, cb) { }) .on('error', cb) .on('end', function() { - if (opts.dontFillSpent) { - return cb(null, ret) - } + + // This is a bad idea. ADDR_PREFIX ONLY indexes tx in outputs + // it is still necesarry for search for inputs + // if (opts.dontFillSpent) { + // return cb(null, ret) + //} async.eachLimit(ret.filter(function(x) { return !x.spentIsConfirmed;