瀏覽代碼

Censor user always gives lv3+ cred to censor

Vecna 9 月之前
父節點
當前提交
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();