Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed May 8, 2024
1 parent 64b4725 commit b41cad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallas-hardano/src/storage/immutable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ fn build_stack_of_chunk_names(dir: &Path) -> Result<ChunkNameSack, std::io::Erro
.collect::<Vec<_>>();

chunks.sort();
chunks.reverse();
// According to this docs https://mithril.network/doc/glossary/#immutable-file-number,
// the last chunk files are not really immutable.
// So to preserve only immutable data the last chunk files are omitted.
chunks.pop();
chunks.reverse();

Ok(chunks)
}
Expand Down

0 comments on commit b41cad2

Please sign in to comment.