rm broken dontFillSpend option

This commit is contained in:
Matias Alejo Garcia 2015-07-17 18:35:44 -03:00
parent 270599597e
commit b9ad26ab7e
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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;