From 4c7e7a6d2feb63a42a6818497034d020a2800c56 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 12 Aug 2015 18:39:09 -0300 Subject: [PATCH] send list of nbBlocks to insight --- lib/blockchainexplorers/insight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blockchainexplorers/insight.js b/lib/blockchainexplorers/insight.js index 91fad8c..9eb9d67 100644 --- a/lib/blockchainexplorers/insight.js +++ b/lib/blockchainexplorers/insight.js @@ -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 = {