Skip to main content

release_is_safe

Function release_is_safe 

Source
pub fn release_is_safe(
    verdict: &StorageVerdict,
    verify_asset_accepted: bool,
) -> bool
Expand description

The verify-before-destroy predicate: destructive local cleanup of irreplaceable bytes may proceed only when the server’s verdict is durable, every declared blob individually re-checks as safely stored (the client never trusts the server’s aggregate over the details it can recompute), and verify_asset accepted the asset.

A false result never triggers a destructive action — the caller retains the local copy, retries with backoff, and surfaces “not yet confirmed on server”.