Skip to content

feat: increment relay's limits for basic/extended/privileged users #855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ RELAY_INPUT_SIZE_LIMIT=1
RELAY_RATE_LIMIT_DISABLED=true
RELAY_MIRROR_NODE_GET_CONTRACT_RESULTS_RETRIES=20
RELAY_DEBUG_API_ENABLED=true
RELAY_HBAR_RATE_LIMIT_BASIC=500000000000
RELAY_HBAR_RATE_LIMIT_EXTENDED=600000000000
RELAY_HBAR_RATE_LIMIT_PRIVILEGED=700000000000

#### Record Stream Uploader ####
STREAM_EXTENSION=rcd.gz
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ services:
REDIS_URL: "${RELAY_REDIS_URL}"
MIRROR_NODE_GET_CONTRACT_RESULTS_RETRIES: "${RELAY_MIRROR_NODE_GET_CONTRACT_RESULTS_RETRIES}"
DEBUG_API_ENABLED: "${RELAY_DEBUG_API_ENABLED}"
HBAR_RATE_LIMIT_BASIC: "${RELAY_HBAR_RATE_LIMIT_BASIC}"
HBAR_RATE_LIMIT_EXTENDED: "${RELAY_HBAR_RATE_LIMIT_EXTENDED}"
HBAR_RATE_LIMIT_PRIVILEGED: "${RELAY_HBAR_RATE_LIMIT_PRIVILEGED}"
ports:
- "7546:7546"
restart: unless-stopped
Expand Down
5 changes: 4 additions & 1 deletion src/configuration/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
{"key": "RELAY_WS_MULTIPLE_ADDRESSES_ENABLED", "value": false},
{"key": "RELAY_WS_SUBSCRIPTION_LIMIT", "value": 100},
{"key": "RELAY_MIRROR_NODE_GET_CONTRACT_RESULTS_RETRIES", "value": "20"},
{"key": "RELAY_DEBUG_API_ENABLED", "value": true}
{"key": "RELAY_DEBUG_API_ENABLED", "value": true},
{"key": "RELAY_HBAR_RATE_LIMIT_BASIC", "value": "500000000000"},
{"key": "RELAY_HBAR_RATE_LIMIT_EXTENDED", "value": "600000000000"},
{"key": "RELAY_HBAR_RATE_LIMIT_PRIVILEGED", "value": "700000000000"}
],
"nodeConfiguration": {
"properties": [
Expand Down
Loading