From 201a0c4bcdcfdb0ed0b2bfcb55158c78734b135c Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Tue, 17 Oct 2017 19:40:01 -0400 Subject: [PATCH] Adding in spent status. --- lib/transactions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/transactions.js b/lib/transactions.js index 774e74f..3c884a8 100644 --- a/lib/transactions.js +++ b/lib/transactions.js @@ -37,7 +37,7 @@ TxController.prototype.transaction = function(req, res, next) { var self = this; var txid = req.params.txid; - this._transaction.getDetailedTransaction(txid, {}, function(err, transaction) { + this._address.getTransactionWithAddressInfo(txid, {}, function(err, transaction) { if (err) { return self.common.handleErrors(err, res); } @@ -272,7 +272,7 @@ TxController.prototype.list = function(req, res) { } async.mapSeries(txids, function(txid, next) { - self._transaction.getDetailedTransaction(txid, {}, function(err, transaction) { + self._transaction.getTransactionWithAddressInfo(txid, {}, function(err, transaction) { if (err) { return next(err); } @@ -290,7 +290,7 @@ TxController.prototype.list = function(req, res) { }); }); - } else if(address) { + } else if (address) { var options = { from: page * pageLength, to: (page + 1) * pageLength