fn fake_complete() -> DownloadState {
    let manifest = Manifest {
        version: 0,
        file_table: vec![],
        chunk_table: vec![],
    };
    let artifact = Artifact::StateSync(StateSyncMessage {
        height: Height::new(0),
        root_hash: CryptoHashOfState::from(CryptoHash(vec![0; 32])),
        checkpoint_root: PathBuf::new(),
        manifest,
        get_state_sync_chunk: None,
    });
    DownloadState::Complete(Box::new(artifact))
}
/// Creates a fake DownloadState::Completed for an empty state.
Creates a fake DownloadState::Completed for an empty state.
Creates a fake DownloadState :: Completed for an empty state .
fn fake_complete() -> DownloadState {
    let manifest = Manifest {
        version: 0,
        file_table: vec![],
        chunk_table: vec![],
    };
    let artifact = Artifact::StateSync(StateSyncMessage {
        height: Height::new(0),
        root_hash: CryptoHashOfState::from(CryptoHash(vec![0; 32])),
        checkpoint_root: PathBuf::new(),
        manifest,
        get_state_sync_chunk: None,
    });
    DownloadState::Complete(Box::new(artifact))
}
fn fake_complete ( ) -> DownloadState { let manifest = Manifest { version : 0 , file_table : vec ! [ ] , chunk_table : vec ! [ ] , } ; let artifact = Artifact :: StateSync ( StateSyncMessage { height : Height :: new ( 0 ) , root_hash : CryptoHashOfState :: from ( CryptoHash ( vec ! [ 0 32 ] ) ) , checkpoint_root : PathBuf :: new ( ) , manifest , get_state_sync_chunk : None , } ) ; DownloadState :: Complete ( Box :: new ( artifact ) ) }
Creates a fake DownloadState::Completed for an empty state.
Creates a fake DownloadState :: Completed for an empty state .