MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / operation_is_verified

Method operation_is_verified

atomic-repository/src/repository/operation.rs:2278–2287  ·  view source on GitHub ↗

Test whether one operation has an immutable operation-level verified receipt.

(
        &self,
        operation_id: OperationId,
    )

Source from the content-addressed store, hash-verified

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)?;

Callers 1

Calls 3

read_txnMethod · 0.80
get_effect_receiptsMethod · 0.45

Tested by

no test coverage detected