Skip to content

Commit

Permalink
feat(storage): dont remove zerostate from persistent storage
Browse files Browse the repository at this point in the history
  • Loading branch information
pashinov committed Jun 10, 2024
1 parent 8683543 commit 97c82f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/src/store/persistent_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ impl PersistentStateStorage {
continue;
};

let is_recent =
matches!(name.parse::<u32>(), Ok(seqno) if seqno >= recent_block_id.seqno);
let is_recent = matches!(name.parse::<u32>(), Ok(seqno) if seqno >= recent_block_id.seqno || seqno == 0);

if !is_recent {
directories_to_remove.push(path);
Expand Down

0 comments on commit 97c82f5

Please sign in to comment.