pub fn block_num_to_s3block_path(block_index: transaction::BlockIndex) -> PathBuf {
    let filename = format!("{:016x}.pb", block_index);
    let mut path = PathBuf::new();
    for i in 0..7 {
        path.push(&filename[i * 2..i * 2 + 2]);
    }
    path.push(filename);
    path
}
/// Helper method for getting the suggested path/filename for a given block index.
Helper method for getting the suggested path/filename for a given block index.
Helper method for getting the suggested path / filename for a given block index .
pub fn block_num_to_s3block_path(block_index: transaction::BlockIndex) -> PathBuf {
    let filename = format!("{:016x}.pb", block_index);
    let mut path = PathBuf::new();
    for i in 0..7 {
        path.push(&filename[i * 2..i * 2 + 2]);
    }
    path.push(filename);
    path
}
pub fn block_num_to_s3block_path ( block_index : transaction :: BlockIndex ) -> PathBuf { let filename = format ! ( " " block_index ) ; let mut path = PathBuf :: new ( ) ; for i in 0 .. 7 { path . push ( & filename [ i * 2 .. i * 2 + 2 ] ) ; } path . push ( filename ) ; path }
Helper method for getting the suggested path/filename for a given block index.
Helper method for getting the suggested path / filename for a given block index .
block_index
transaction::BlockIndex
block_index
transaction::BlockIndex