diff --git a/bench-tps/src/bench.rs b/bench-tps/src/bench.rs index 0ee82b837..3d5a25a71 100644 --- a/bench-tps/src/bench.rs +++ b/bench-tps/src/bench.rs @@ -48,7 +48,7 @@ const MAX_COMPUTE_UNIT_PRICE: u64 = 50; const TRANSFER_TRANSACTION_COMPUTE_UNIT: u32 = 200; /// calculate maximum possible prioritizatino fee, if `use-randomized-compute-unit-price` is /// enabled, round to nearest lamports. -pub fn max_lamporots_for_prioritization(use_randomized_compute_unit_price: bool) -> u64 { +pub fn max_lamports_for_prioritization(use_randomized_compute_unit_price: bool) -> u64 { if use_randomized_compute_unit_price { const MICRO_LAMPORTS_PER_LAMPORT: u64 = 1_000_000; let micro_lamport_fee: u128 = (MAX_COMPUTE_UNIT_PRICE as u128) diff --git a/bench-tps/src/main.rs b/bench-tps/src/main.rs index 94422c485..1b2e4a3da 100644 --- a/bench-tps/src/main.rs +++ b/bench-tps/src/main.rs @@ -4,7 +4,7 @@ use { clap::value_t, log::*, solana_bench_tps::{ - bench::{do_bench_tps, max_lamporots_for_prioritization}, + bench::{do_bench_tps, max_lamports_for_prioritization}, bench_tps_client::BenchTpsClient, cli::{self, ExternalClientType}, keypairs::get_keypairs, @@ -166,7 +166,7 @@ fn main() { let num_accounts = keypairs.len() as u64; let max_fee = FeeRateGovernor::new(*target_lamports_per_signature, 0) .max_lamports_per_signature - .saturating_add(max_lamporots_for_prioritization( + .saturating_add(max_lamports_for_prioritization( *use_randomized_compute_unit_price, )); let num_lamports_per_account = (num_accounts - 1 + NUM_SIGNATURES_FOR_TXS * max_fee)