bitcoind: fix multiple addresses for address history
This commit is contained in:
parent
b473b65207
commit
9409374fbe
@ -589,6 +589,9 @@ Bitcoin.prototype._paginateTxids = function(fullTxids, from, to) {
|
|||||||
Bitcoin.prototype.getAddressHistory = function(addressArg, options, callback) {
|
Bitcoin.prototype.getAddressHistory = function(addressArg, options, callback) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var addresses = [addressArg];
|
var addresses = [addressArg];
|
||||||
|
if (_.isArray(addressArg)) {
|
||||||
|
addresses = addressArg;
|
||||||
|
}
|
||||||
if (addresses.length > this.maxAddressesQuery) {
|
if (addresses.length > this.maxAddressesQuery) {
|
||||||
return callback(new TypeError('Maximum number of addresses (' + this.maxAddressesQuery + ') exceeded'));
|
return callback(new TypeError('Maximum number of addresses (' + this.maxAddressesQuery + ') exceeded'));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user