Ver código fonte

Censor user always gives lv3+ cred to censor

Vecna 9 meses atrás
pai
commit
788f1f7f21
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/simulation/censor.rs

+ 1 - 1
src/simulation/censor.rs

@@ -74,7 +74,7 @@ impl Censor {
         // We only need one level 3+ credential per bridge. (This will
         // change if we restrict positive reports to one per bridge per
         // credential.)
-        if !self.has_lox_cred(fingerprint) && scalar_u32(&cred.trust_level).unwrap() >= 3 {
+        if scalar_u32(&cred.trust_level).unwrap() >= 3 {
             // We want to clone the credential, but that's not allowed,
             // so we're going to serialize it and then deserialize it.
             let cloned_cred = bincode::deserialize(&bincode::serialize(&cred).unwrap()).unwrap();