Skip to content

Commit 74a96e9

Browse files
committed
Merge pull request #342 from matiu/feat/tx-order2
better ordering of txs
2 parents 1735552 + b9ad26a commit 74a96e9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/controllers/addresses.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ exports.multitxs = function(req, res, next) {
211211
}, {
212212
ignoreCache: req.param('noCache'),
213213
includeTxInfo: true,
214-
dontFillSpent: true,
215214
});
216215
}, function(err) { // finished callback
217216
if (err) return common.handleErrors(err, res);

lib/TransactionDb.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,6 @@ TransactionDb.prototype._parseAddrData = function(k, data, ignoreCache) {
448448
};
449449

450450

451-
// opts.dontFillSpent
452-
453451
TransactionDb.prototype.fromAddr = function(addr, opts, cb) {
454452
opts = opts || {};
455453
var self = this;
@@ -475,9 +473,12 @@ TransactionDb.prototype.fromAddr = function(addr, opts, cb) {
475473
})
476474
.on('error', cb)
477475
.on('end', function() {
478-
if (opts.dontFillSpent) {
479-
return cb(null, ret)
480-
}
476+
477+
// This is a bad idea. ADDR_PREFIX ONLY indexes tx in outputs
478+
// it is still necesarry for search for inputs
479+
// if (opts.dontFillSpent) {
480+
// return cb(null, ret)
481+
//}
481482

482483
async.eachLimit(ret.filter(function(x) {
483484
return !x.spentIsConfirmed;

0 commit comments

Comments
 (0)