Fix typos (#10675)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@ -60,7 +60,7 @@ pub type TransactionLoaders = Vec<Vec<(Pubkey, Account)>>;
|
||||
pub type TransactionLoadResult = (TransactionAccounts, TransactionLoaders, TransactionRent);
|
||||
|
||||
pub enum AccountAddressFilter {
|
||||
Exclude, // exclude all addresses matching the fiter
|
||||
Exclude, // exclude all addresses matching the filter
|
||||
Include, // only include addresses matching the filter
|
||||
}
|
||||
|
||||
|
@ -748,7 +748,7 @@ impl AccountsDB {
|
||||
}
|
||||
}
|
||||
|
||||
// Atomicallly process reclaims and new dead_slots in this thread, gauranteeing
|
||||
// Atomically process reclaims and new dead_slots in this thread, guaranteeing
|
||||
// complete data removal for slots in reclaims.
|
||||
fn handle_reclaims_ensure_cleanup(&self, reclaims: SlotSlice<AccountInfo>) {
|
||||
let mut dead_accounts = Measure::start("reclaims::remove_dead_accounts");
|
||||
@ -3683,7 +3683,7 @@ pub mod tests {
|
||||
let mut current_slot = 0;
|
||||
let accounts = AccountsDB::new_single();
|
||||
|
||||
// create intermidiate updates to purged_pubkey1 so that
|
||||
// create intermediate updates to purged_pubkey1 so that
|
||||
// generate_index must add slots as root last at once
|
||||
current_slot += 1;
|
||||
accounts.store(current_slot, &[(&pubkey, &account)]);
|
||||
|
@ -696,7 +696,7 @@ pub mod tests {
|
||||
account.set_data_len_unsafe(crafted_data_len);
|
||||
assert_eq!(account.meta.data_len, crafted_data_len);
|
||||
|
||||
// Reload accoutns and observe crafted_data_len
|
||||
// Reload accounts and observe crafted_data_len
|
||||
let accounts = av.accounts(0);
|
||||
let account = accounts.first().unwrap();
|
||||
assert_eq!(account.meta.data_len, crafted_data_len);
|
||||
@ -763,7 +763,7 @@ pub mod tests {
|
||||
{
|
||||
let executable_bool: &bool = &account.account_meta.executable;
|
||||
// Depending on use, *executable_bool can be truthy or falsy due to direct memory manipulation
|
||||
// assert_eq! thinks *exeutable_bool is equal to false but the if condition thinks it's not, contradictly.
|
||||
// assert_eq! thinks *executable_bool is equal to false but the if condition thinks it's not, contradictorily.
|
||||
assert_eq!(*executable_bool, false);
|
||||
const FALSE: bool = false; // keep clippy happy
|
||||
if *executable_bool == FALSE {
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! The `bank_forks` module implments BankForks a DAG of checkpointed Banks
|
||||
//! The `bank_forks` module implements BankForks a DAG of checkpointed Banks
|
||||
|
||||
use crate::snapshot_package::{AccountsPackageSendError, AccountsPackageSender};
|
||||
use crate::snapshot_utils::{self, SnapshotError};
|
||||
|
@ -464,7 +464,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_create_with_zero_lamports() {
|
||||
// create account with zero lamports tranferred
|
||||
// create account with zero lamports transferred
|
||||
let new_owner = Pubkey::new(&[9; 32]);
|
||||
let from = Pubkey::new_rand();
|
||||
let from_account = Account::new_ref(100, 1, &Pubkey::new_rand()); // not from system account
|
||||
|
@ -861,7 +861,7 @@ mod tests {
|
||||
.lamports(1, 2)
|
||||
.verify(),
|
||||
Err(InstructionError::ExecutableLamportChange),
|
||||
"owner should not be able to add lamports once makred executable"
|
||||
"owner should not be able to add lamports once marked executable"
|
||||
);
|
||||
assert_eq!(
|
||||
Change::new(&owner, &owner)
|
||||
@ -1045,7 +1045,7 @@ mod tests {
|
||||
.data(vec![0], vec![0, 0])
|
||||
.verify(),
|
||||
Ok(()),
|
||||
"system program should be able to change acount data size"
|
||||
"system program should be able to change account data size"
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user