pub async fn prepare_recovery_snapshot(
    storage: &mut Connection<'_, Core>,
    l1_batch: L1BatchNumber,
    l2_block: L2BlockNumber,
    storage_logs: &[StorageLog],
) -> SnapshotRecoveryStatus {
    let storage_logs = storage_logs
        .iter()
        .enumerate()
        .map(|(i, log)| SnapshotStorageLog {
            key: log.key.hashed_key(),
            value: log.value,
            l1_batch_number_of_initial_write: l1_batch,
            enumeration_index: i as u64 + 1,
        })
        .collect();
    let snapshot = Snapshot::new(
        l1_batch,
        l2_block,
        storage_logs,
        &BaseSystemContracts::load_from_disk(),
        ProtocolVersionId::latest(),
    );
    recover(storage, snapshot).await
}
Prepares a recovery snapshot without performing genesis.
core/node/test_utils/src/lib.rs