Test whether one operation has an immutable operation-level verified receipt.
(
&self,
operation_id: OperationId,
)
| 2276 | |
| 2277 | /// Test whether one operation has an immutable operation-level verified receipt. |
| 2278 | pub(super) fn operation_is_verified( |
| 2279 | &self, |
| 2280 | operation_id: OperationId, |
| 2281 | ) -> Result<bool, RepositoryError> { |
| 2282 | let txn = self.pristine.read_txn().map_err(pristine_error)?; |
| 2283 | let receipts = txn |
| 2284 | .get_effect_receipts(operation_id) |
| 2285 | .map_err(pristine_error)?; |
| 2286 | Ok(has_operation_verified_receipt(&receipts)) |
| 2287 | } |
| 2288 | |
| 2289 | pub(super) fn repository_operation_requires_recovery(&self) -> Result<bool, RepositoryError> { |
| 2290 | let txn = self.pristine.read_txn().map_err(pristine_error)?; |
no test coverage detected