From e92f9045dd758c8a9968a76015967effe12b2894 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Fri, 4 Oct 2024 09:49:43 -0500 Subject: [PATCH] more consistent naming --- ledger/src/blockstore_processor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index b54224d87a39a5..3eedf03e4d0083 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -542,9 +542,9 @@ 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. @@ -552,10 +552,10 @@ fn rebatch_and_execute_batches( &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); }