|
@@ -169,10 +169,18 @@ impl Censor {
|
|
|
if self.has_lox_cred(fingerprint) {
|
|
|
let (_cred, cred_count) =
|
|
|
&self.lox_credentials.get(&bridge.fingerprint).unwrap();
|
|
|
+
|
|
|
+ // Reduce the number of these for efficiency. It
|
|
|
+ // does not benefit the censor to submit more
|
|
|
+ // than 25 positive reports under the current
|
|
|
+ // detection algorithm. In practice, the censor
|
|
|
+ // should submit as many reports as possible.
|
|
|
let num_prs = if config.one_positive_report_per_cred {
|
|
|
- *cred_count
|
|
|
+ // *cred_count
|
|
|
+ min(*cred_count, 25)
|
|
|
} else {
|
|
|
- 30000
|
|
|
+ //30000
|
|
|
+ 25
|
|
|
};
|
|
|
for _ in 0..num_prs {
|
|
|
self.send_positive_report(config, &bridge.fingerprint).await;
|