Skip to main content

write_snapshot

Function write_snapshot 

Source
pub fn write_snapshot(
    dir: &Path,
    snapshot: &ChainSnapshot,
) -> Result<(), StorageError>
Expand description

Write snapshot into dir (created when absent), replacing the one there.

ยงErrors

StorageError::Snapshot naming the step that failed.