Flood with a specific large number of connections

This commit is contained in:
Vecna 2024-06-06 16:45:00 -04:00
parent 12882938e3
commit 9495c8cbda
1 changed files with 3 additions and 3 deletions

View File

@ -131,8 +131,8 @@ impl Censor {
{
let bridge = bridges.get_mut(fingerprint).unwrap();
let mut rng = rand::thread_rng();
let num_connections = rng.gen_range(1000..30000);
// A large number
let num_connections = 30000;
// Make a bunch of connections to the bridge
bridge.censor_flood(num_connections);
@ -145,7 +145,7 @@ impl Censor {
let num_prs = if config.one_positive_report_per_cred {
*cred_count
} else {
rng.gen_range(1000..30000)
30000
};
for _ in 0..num_prs {
self.send_positive_report(config, &bridge.fingerprint).await;