Merge pull request #165 from maraoz/fix/package

fix package and increase limits
This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-23 14:53:11 -03:00
commit ae7b7ed12b
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "insight-bitcore-api", "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.", "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": { "author": {
"name": "Ryan X Charles", "name": "Ryan X Charles",
"email": "ryan@bitpay.com" "email": "ryan@bitpay.com"
@ -71,7 +71,8 @@
"socket.io-client": "1.0.6", "socket.io-client": "1.0.6",
"soop": "=0.1.5", "soop": "=0.1.5",
"winston": "*", "winston": "*",
"xmlhttprequest": "~1.6.0" "xmlhttprequest": "~1.6.0",
"microtime": "^0.6.0"
}, },
"devDependencies": { "devDependencies": {
"chai": "*", "chai": "*",
@ -85,7 +86,6 @@
"grunt-mocha-test": "~0.8.1", "grunt-mocha-test": "~0.8.1",
"grunt-nodemon": "~0.2.0", "grunt-nodemon": "~0.2.0",
"memdown": "^0.10.2", "memdown": "^0.10.2",
"microtime": "^0.6.0",
"should": "2.1.1" "should": "2.1.1"
} }
} }

View File

@ -9,8 +9,8 @@ module.exports.init = function(app, config) {
logger.info('Using ratelimiter plugin'); logger.info('Using ratelimiter plugin');
config = config || {}; config = config || {};
config.whitelistRPH = config.whitelistRPH || 50000; config.whitelistRPH = config.whitelistRPH || 500000;
config.normalRPH = config.normalRPH || 1000; config.normalRPH = config.normalRPH || 10000;
config.blacklistRPH = config.blacklistRPH || 0; config.blacklistRPH = config.blacklistRPH || 0;
app.use(limiter({ app.use(limiter({