send list of nbBlocks to insight

This commit is contained in:
Ivan Socolsky 2015-08-12 18:39:09 -03:00
parent ad6102c7ce
commit 4c7e7a6d2f
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ Insight.prototype.getAddressActivity = function(addresses, cb) {
Insight.prototype.estimateFee = function(nbBlocks, cb) {
var url = this.url + '/api/utils/estimatefee';
if (nbBlocks) {
url += '?nbBlocks=' + nbBlocks;
url += '?nbBlocks=' + [].concat(nbBlocks).join(',');
}
var args = {