fix typo: lamporots to lamports (#27987)

This commit is contained in:
apfitzge 2022-09-23 15:00:31 -05:00 committed by GitHub
parent 89b0abcf4d
commit e8014aaf84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)