Construct a frontier from an already-canonical root list.
(roots: Vec<Hash>)
| 175 | impl CausalFrontier { |
| 176 | /// Construct a frontier from an already-canonical root list. |
| 177 | pub fn new(roots: Vec<Hash>) -> Result<Self, ChangeValidationError> { |
| 178 | validate_canonical_hashes("causal_frontier", &roots)?; |
| 179 | Ok(Self { roots }) |
| 180 | } |
| 181 | |
| 182 | /// Construct an empty frontier. |
| 183 | pub const fn empty() -> Self { |
nothing calls this directly
no test coverage detected