rename process_entries_with_callback to process_entries (#30870)
This commit is contained in:
parent
db1e721f48
commit
b14fcf5a12
|
@ -429,7 +429,7 @@ pub fn process_entries_for_tests(
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let _ignored_prioritization_fee_cache = PrioritizationFeeCache::new(0u64);
|
let _ignored_prioritization_fee_cache = PrioritizationFeeCache::new(0u64);
|
||||||
let result = process_entries_with_callback(
|
let result = process_entries(
|
||||||
bank,
|
bank,
|
||||||
&mut replay_entries,
|
&mut replay_entries,
|
||||||
randomize,
|
randomize,
|
||||||
|
@ -445,8 +445,7 @@ pub fn process_entries_for_tests(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: If randomize is true this will shuffle entries' transactions in-place.
|
// Note: If randomize is true this will shuffle entries' transactions in-place.
|
||||||
#[allow(clippy::too_many_arguments)]
|
fn process_entries(
|
||||||
fn process_entries_with_callback(
|
|
||||||
bank: &Arc<Bank>,
|
bank: &Arc<Bank>,
|
||||||
entries: &mut [ReplayEntry],
|
entries: &mut [ReplayEntry],
|
||||||
randomize: bool,
|
randomize: bool,
|
||||||
|
@ -1194,7 +1193,7 @@ fn confirm_slot_entries(
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
// Note: This will shuffle entries' transactions in-place.
|
// Note: This will shuffle entries' transactions in-place.
|
||||||
let process_result = process_entries_with_callback(
|
let process_result = process_entries(
|
||||||
bank,
|
bank,
|
||||||
&mut replay_entries,
|
&mut replay_entries,
|
||||||
true, // shuffle transactions.
|
true, // shuffle transactions.
|
||||||
|
|
Loading…
Reference in New Issue