Skip to content
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

fix: add a more aggressive rate limit for spammy users #226

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'master' into more-strict-rate-limit-for-spammer
  • Loading branch information
wa0x6e committed Nov 14, 2023
commit 504817e64e501e2fcc39108a58c094a32f60c310
1 change: 1 addition & 0 deletions test/.env.test
Original file line number Diff line number Diff line change
@@ -5,3 +5,4 @@ RELAYER_PK=01686849e86499c1860ea0afc97f29c11018cbac049abf843df875c60054076e
NODE_ENV=test
RATE_LIMIT_DATABASE_URL=redis://localhost:6379
RATE_LIMIT_KEYS_PREFIX=snapshot-sequencer-test:
AUTH_SECRET=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9
3 changes: 3 additions & 0 deletions test/e2e/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import fetch from 'node-fetch';
import proposalInput from '../fixtures/ingestor-payload/proposal.json';
import redis from '../../src/helpers/redis';
import spacesFixtures from '../fixtures/space';
import proposalsFixtures from '../fixtures/proposal';
import db from '../../src/helpers/mysql';

const HOST = `http://localhost:${process.env.PORT || 3003}`;
const SPACE_PREFIX = 'e2e-';
You are viewing a condensed version of this merge commit. You can view the full changes here.