From f76d3ba61bac52b922801f8e30caa632cb47a108 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 22 Aug 2014 15:05:54 -0400 Subject: [PATCH 1/2] fix package and increase limits --- package.json | 4 ++-- plugins/ratelimiter.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b331b85..8d45048 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "socket.io-client": "1.0.6", "soop": "=0.1.5", "winston": "*", - "xmlhttprequest": "~1.6.0" + "xmlhttprequest": "~1.6.0", + "microtime": "^0.6.0" }, "devDependencies": { "chai": "*", @@ -85,7 +86,6 @@ "grunt-mocha-test": "~0.8.1", "grunt-nodemon": "~0.2.0", "memdown": "^0.10.2", - "microtime": "^0.6.0", "should": "2.1.1" } } diff --git a/plugins/ratelimiter.js b/plugins/ratelimiter.js index 6523673..6c3b2b7 100644 --- a/plugins/ratelimiter.js +++ b/plugins/ratelimiter.js @@ -9,8 +9,8 @@ module.exports.init = function(app, config) { logger.info('Using ratelimiter plugin'); config = config || {}; - config.whitelistRPH = config.whitelistRPH || 50000; - config.normalRPH = config.normalRPH || 1000; + config.whitelistRPH = config.whitelistRPH || 500000; + config.normalRPH = config.normalRPH || 10000; config.blacklistRPH = config.blacklistRPH || 0; app.use(limiter({ From 419c9a069d15ec548341b1255eb5fb35a8fbe770 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 22 Aug 2014 16:15:40 -0400 Subject: [PATCH 2/2] new version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8d45048..14da112 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "insight-bitcore-api", "description": "An open-source bitcoin blockchain API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.", - "version": "0.2.8", + "version": "0.2.9", "author": { "name": "Ryan X Charles", "email": "ryan@bitpay.com"