From 9409374fbe513a8525f0fca1f9da55db91e32900 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 5 Apr 2016 16:12:19 -0400 Subject: [PATCH] bitcoind: fix multiple addresses for address history --- lib/services/bitcoind.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index 0f12f10b..8f864345 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -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')); }