Skip to content

Commit

Permalink
Remove unused account_deps (solana-labs#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Mar 12, 2024
1 parent 5f66165 commit 0705a07
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions svm/src/account_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ fn load_transaction_accounts<CB: TransactionProcessingCallback>(
let mut tx_rent: TransactionRent = 0;
let account_keys = message.account_keys();
let mut accounts_found = Vec::with_capacity(account_keys.len());
let mut account_deps = Vec::with_capacity(account_keys.len());
let mut rent_debits = RentDebits::default();
let rent_collector = callbacks.get_rent_collector();

Expand Down Expand Up @@ -316,13 +315,6 @@ fn load_transaction_accounts<CB: TransactionProcessingCallback>(
return Err(TransactionError::AccountNotFound);
}

// Appends the account_deps at the end of the accounts,
// this way they can be accessed in a uniform way.
// At places where only the accounts are needed,
// the account_deps are truncated using e.g:
// accounts.iter().take(message.account_keys.len())
accounts.append(&mut account_deps);

let builtins_start_index = accounts.len();
let program_indices = message
.instructions()
Expand Down

0 comments on commit 0705a07

Please sign in to comment.