rm broken dontFillSpend option
This commit is contained in:
parent
270599597e
commit
b9ad26ab7e
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user