diff --git a/pallas-hardano/src/storage/immutable/mod.rs b/pallas-hardano/src/storage/immutable/mod.rs index e6c4e4f..14f1c60 100644 --- a/pallas-hardano/src/storage/immutable/mod.rs +++ b/pallas-hardano/src/storage/immutable/mod.rs @@ -118,6 +118,10 @@ fn build_stack_of_chunk_names(dir: &Path) -> Result>(); chunks.sort(); + // 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)