// ---------------------------------------------------------------------------
+const TRACKER_RATE_LIMITS = {
+ INTERVAL: 60000 * 5, // 5 minutes
+ ANNOUNCES_PER_IP_PER_INFOHASH: 10, // maximum announces per torrent in the interval
+ ANNOUNCES_PER_IP: 30 // maximum announces for all our torrents in the interval
+}
+
+// ---------------------------------------------------------------------------
+
// Special constants for a test instance
if (isTestInstance() === true) {
ACTOR_FOLLOW_SCORE.BASE = 20
AVATARS_SIZE,
ACCEPT_HEADERS,
BCRYPT_SALT_SIZE,
+ TRACKER_RATE_LIMITS,
CACHE,
CONFIG,
CONSTRAINTS_FIELDS,