mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Merge pull request #33 from Permissionless-Software-Foundation/ct-unstable
Increasing rate limits for hydrateUtxos()
This commit is contained in:
Generated
+3
-3
@@ -366,9 +366,9 @@
|
||||
}
|
||||
},
|
||||
"@psf/bch-js": {
|
||||
"version": "3.6.2",
|
||||
"resolved": "https://registry.npmjs.org/@psf/bch-js/-/bch-js-3.6.2.tgz",
|
||||
"integrity": "sha512-6r8NBB48WgWHAFeuwrlkaE3B87TT3o/8hdjU1DOWXUx7lMFIF1Aq25CffUxF3sHP0pSx3/+4ulQZFROHGTwnDQ==",
|
||||
"version": "3.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@psf/bch-js/-/bch-js-3.6.3.tgz",
|
||||
"integrity": "sha512-0nqmLprZU+1lh1WTnAqVHQD+bIPJIcEQ36rBNoyh4ejzWZoQ7pTMj2r2I7JGhWmxWdSQ+g4stT1OrC4qmH6jdw==",
|
||||
"requires": {
|
||||
"@uppy/core": "^1.10.4",
|
||||
"@uppy/tus": "^1.5.12",
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
"node": ">=10.15.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@psf/bch-js": "^3.6.2",
|
||||
"@psf/bch-js": "^3.6.3",
|
||||
"apidoc": "^0.23.0",
|
||||
"axios": "^0.19.0",
|
||||
"bitcore-lib-cash": "^8.20.3",
|
||||
|
||||
@@ -137,7 +137,7 @@ class RateLimits {
|
||||
|
||||
// Apply paid-access rate limits based on key/IP
|
||||
if (key.toString().indexOf('172.17.') > -1) {
|
||||
pointsToConsume = 1
|
||||
pointsToConsume = 0.1
|
||||
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user