Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jul 11, 2024
1 parent e0c7f24 commit cfb918e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1470,10 +1470,12 @@ pub fn confirm_slot(
let mut chunked_entries = blockstore.get_slot_chunked_entries_in_block(slot, progress.num_shreds as u32, &slot_meta);

let mut current_entry = chunked_entries.next();
let mut last_end_index: u32;
let mut last_end_index: u32 = 0;
loop {
let Some((entry, last_end_index)) = current_entry else {
progress.num_shreds += (last_end_index as u64 - progress.num_shreds + 1);
if last_end_index > 0 {
progress.num_shreds += (last_end_index as u64 - progress.num_shreds + 1);
}
return Ok(());
};
let next_entry = chunked_entries.next();
Expand Down

0 comments on commit cfb918e

Please sign in to comment.