Adding in spent status.
This commit is contained in:
parent
9225739901
commit
201a0c4bcd
@ -37,7 +37,7 @@ TxController.prototype.transaction = function(req, res, next) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
var txid = req.params.txid;
|
var txid = req.params.txid;
|
||||||
|
|
||||||
this._transaction.getDetailedTransaction(txid, {}, function(err, transaction) {
|
this._address.getTransactionWithAddressInfo(txid, {}, function(err, transaction) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return self.common.handleErrors(err, res);
|
return self.common.handleErrors(err, res);
|
||||||
}
|
}
|
||||||
@ -272,7 +272,7 @@ TxController.prototype.list = function(req, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async.mapSeries(txids, function(txid, next) {
|
async.mapSeries(txids, function(txid, next) {
|
||||||
self._transaction.getDetailedTransaction(txid, {}, function(err, transaction) {
|
self._transaction.getTransactionWithAddressInfo(txid, {}, function(err, transaction) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
@ -290,7 +290,7 @@ TxController.prototype.list = function(req, res) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
} else if(address) {
|
} else if (address) {
|
||||||
var options = {
|
var options = {
|
||||||
from: page * pageLength,
|
from: page * pageLength,
|
||||||
to: (page + 1) * pageLength
|
to: (page + 1) * pageLength
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user