Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Apr 29, 2024
1 parent 3d30d2b commit 6b6073a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions e2e/e2etests/test_rate_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,16 @@ func TestRateLimiter(r *runner.E2ERunner, _ []string) {
panic(err)
}

// First test without rate limiter
//r.Logger.Print("rate limiter disabled")
//if err := createAndWaitWithdraws(r); err != nil {
// panic(err)
//}

// Set the rate limiter to 0.11ZETA per 10 blocks
// Set the rate limiter to 0.5ZETA per 10 blocks
// These rate limiter flags will only allow to process 1 withdraw per 10 blocks
r.Logger.Info("setting up rate limiter flags")
if err := setupRateLimiterFlags(r, rateLimiterFlags); err != nil {
panic(err)
}

// Test with rate limiter
// TODO: define proper assertion to check the rate limiter is working
// https://github.com/zeta-chain/node/issues/2090
r.Logger.Print("rate limiter enabled")
if err := createAndWaitWithdraws(r); err != nil {
panic(err)
Expand Down

0 comments on commit 6b6073a

Please sign in to comment.