Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "tranaction" typo in code base #29347

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4883,7 +4883,7 @@ impl Bank {
signature_count,
} = counts;

let tx_count = if self.bank_tranaction_count_fix_enabled() {
let tx_count = if self.bank_transaction_count_fix_enabled() {
committed_transactions_count
} else {
committed_transactions_count.saturating_sub(committed_with_failure_result_count)
Expand Down Expand Up @@ -7378,9 +7378,9 @@ impl Bank {
self.rc.accounts.accounts_db.print_accounts_stats("");
}

pub fn bank_tranaction_count_fix_enabled(&self) -> bool {
pub fn bank_transaction_count_fix_enabled(&self) -> bool {
self.feature_set
.is_active(&feature_set::bank_tranaction_count_fix::id())
.is_active(&feature_set::bank_transaction_count_fix::id())
}

pub fn shrink_candidate_slots(&self) -> usize {
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/feature_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ pub mod add_get_processed_sibling_instruction_syscall {
solana_sdk::declare_id!("CFK1hRCNy8JJuAAY8Pb2GjLFNdCThS2qwZNe3izzBMgn");
}

pub mod bank_tranaction_count_fix {
pub mod bank_transaction_count_fix {
solana_sdk::declare_id!("Vo5siZ442SaZBKPXNocthiXysNviW4UYPwRFggmbgAp");
}

Expand Down Expand Up @@ -624,7 +624,7 @@ lazy_static! {
(spl_associated_token_account_v1_0_4::id(), "SPL Associated Token Account Program release version 1.0.4, tied to token 3.3.0 #22648"),
(reject_vote_account_close_unless_zero_credit_epoch::id(), "fail vote account withdraw to 0 unless account earned 0 credits in last completed epoch"),
(add_get_processed_sibling_instruction_syscall::id(), "add add_get_processed_sibling_instruction_syscall"),
(bank_tranaction_count_fix::id(), "fixes Bank::transaction_count to include all committed transactions, not just successful ones"),
(bank_transaction_count_fix::id(), "fixes Bank::transaction_count to include all committed transactions, not just successful ones"),
(disable_bpf_deprecated_load_instructions::id(), "disable ldabs* and ldind* SBF instructions"),
(disable_bpf_unresolved_symbols_at_runtime::id(), "disable reporting of unresolved SBF symbols at runtime"),
(record_instruction_in_transaction_context_push::id(), "move the CPI stack overflow check to the end of push"),
Expand Down
4 changes: 2 additions & 2 deletions send-transaction-service/src/send_transaction_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ mod test {
let (sender, receiver) = unbounded();

let connection_cache = Arc::new(ConnectionCache::default());
let send_tranaction_service = SendTransactionService::new::<NullTpuInfo>(
let send_transaction_service = SendTransactionService::new::<NullTpuInfo>(
tpu_address,
&bank_forks,
None,
Expand All @@ -807,7 +807,7 @@ mod test {
);

drop(sender);
send_tranaction_service.join().unwrap();
send_transaction_service.join().unwrap();
}

#[test]
Expand Down