Skip to content

Commit

Permalink
more consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Oct 4, 2024
1 parent 631d443 commit e92f904
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,20 +542,20 @@ fn rebatch_and_execute_batches(
});
&tx_batches[..]
} else {
let mut starting_index = 0;
let mut slice_start = 0;
for num_transactions in original_entry_lengths {
let end_index = starting_index + num_transactions;
let next_index = slice_start + num_transactions;
// this is more of a "re-construction" of the original batches than
// a rebatching. But the logic is the same, with the transfer of
// unlocking responsibility to the batch.
let tx_batch = rebatch_transactions(
&lock_results,
bank,
&sanitized_txs,
starting_index..end_index,
slice_start..next_index,
&transaction_indexes,
);
starting_index = end_index;
slice_start = next_index;
tx_batches.push(tx_batch);
}

Expand Down

0 comments on commit e92f904

Please sign in to comment.