Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
delete old and rename
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed May 2, 2023
1 parent 3441d05 commit bc4916f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
28 changes: 0 additions & 28 deletions runtime/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1300,34 +1300,6 @@ impl Accounts {
durable_nonce: &DurableNonce,
lamports_per_signature: u64,
include_slot_in_hash: IncludeSlotInHash,
) {
let (accounts_to_store, transactions) = self.collect_accounts_to_store(
txs,
res,
loaded,
rent_collector,
durable_nonce,
lamports_per_signature,
);
self.accounts_db.store_cached(
(slot, &accounts_to_store[..], include_slot_in_hash),
Some(&transactions),
);
}

/// Store the accounts into the DB
// allow(clippy) needed for various gating flags
#[allow(clippy::too_many_arguments)]
pub(crate) fn store_cached_inline_update_index(
&self,
slot: Slot,
txs: &[SanitizedTransaction],
res: &[TransactionExecutionResult],
loaded: &mut [TransactionLoadResult],
rent_collector: &RentCollector,
durable_nonce: &DurableNonce,
lamports_per_signature: u64,
include_slot_in_hash: IncludeSlotInHash,
) {
let (accounts_to_store, transactions) = self.collect_accounts_to_store(
txs,
Expand Down
3 changes: 1 addition & 2 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5171,8 +5171,7 @@ impl Bank {

let mut write_time = Measure::start("write_time");
let durable_nonce = DurableNonce::from_blockhash(&last_blockhash);
// Store accounts in cache and force update_index to be inlined (no thread pool)
self.rc.accounts.store_cached_inline_update_index(
self.rc.accounts.store_cached(
self.slot(),
sanitized_txs,
&execution_results,
Expand Down

0 comments on commit bc4916f

Please sign in to comment.