Added noTxList suppert for getAddressSumaary.
This commit is contained in:
parent
22678e3838
commit
0dc69d87af
@ -120,7 +120,7 @@ AddressService.prototype.getAddressSummary = function(address, options, callback
|
||||
}
|
||||
|
||||
var txs = results.items;
|
||||
self._getAddressSummaryResult(txs, address, result);
|
||||
self._getAddressSummaryResult(txs, address, result, options);
|
||||
|
||||
result.balance = Unit.fromSatoshis(result.balanceSat).toBTC();
|
||||
result.totalReceived = Unit.fromSatoshis(result.totalReceivedSat).toBTC();
|
||||
@ -131,7 +131,7 @@ AddressService.prototype.getAddressSummary = function(address, options, callback
|
||||
|
||||
};
|
||||
|
||||
AddressService.prototype._getAddressSummaryResult = function(txs, address, result) {
|
||||
AddressService.prototype._getAddressSummaryResult = function(txs, address, result, options) {
|
||||
|
||||
var self = this;
|
||||
for(var i = 0; i < txs.length; i++) {
|
||||
@ -173,7 +173,9 @@ AddressService.prototype._getAddressSummaryResult = function(txs, address, resul
|
||||
|
||||
}
|
||||
|
||||
result.transactions.push(tx.txid());
|
||||
if (!options.noTxList) {
|
||||
result.transactions.push(tx.txid());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user