Skip to content

Commit

Permalink
Merge pull request #2003 from subspace/gemini-3f-backport-fix-archive…
Browse files Browse the repository at this point in the history
…r-restart

Gemini 3f backport: Fix archiver restart when last block to archive is right on the edge of the segment
  • Loading branch information
nazar-pc authored Sep 25, 2023
2 parents 69b9b8b + bc4c033 commit 2d04263
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/sc-consensus-subspace/src/archiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ where
);
})
.checked_sub(confirmation_depth_k)
.filter(|&blocks_to_archive_to| blocks_to_archive_to >= blocks_to_archive_from)
.or({
if have_last_segment_header {
None
Expand Down

0 comments on commit 2d04263

Please sign in to comment.