Check direct knowledge plus a repository-verified causal closure. A verified index for a different frontier is ignored, preventing callers from using unrelated closure membership as causal proof.
(&self, hash: &Hash, verified: &VerifiedCausalFrontier)
| 882 | /// A verified index for a different frontier is ignored, preventing callers |
| 883 | /// from using unrelated closure membership as causal proof. |
| 884 | pub fn knows_with_frontier(&self, hash: &Hash, verified: &VerifiedCausalFrontier) -> bool { |
| 885 | self.knows(hash) |
| 886 | || (verified.matches(&self.hashed.causal_frontier) && verified.contains(hash)) |
| 887 | } |
| 888 | |
| 889 | /// Collect all unique hashes referenced by hunks into the hash dedup table. |
| 890 | /// |
no test coverage detected