bitcoind: fix multiple addresses for address history

This commit is contained in:
Braydon Fuller 2016-04-05 16:12:19 -04:00
parent b473b65207
commit 9409374fbe

View File

@ -589,6 +589,9 @@ Bitcoin.prototype._paginateTxids = function(fullTxids, from, to) {
Bitcoin.prototype.getAddressHistory = function(addressArg, options, callback) {
var self = this;
var addresses = [addressArg];
if (_.isArray(addressArg)) {
addresses = addressArg;
}
if (addresses.length > this.maxAddressesQuery) {
return callback(new TypeError('Maximum number of addresses (' + this.maxAddressesQuery + ') exceeded'));
}