소스 검색

Censor user always gives lv3+ cred to censor

Vecna 2 년 전
부모
커밋
788f1f7f21
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();