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

Commit

Permalink
revert test change
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Nov 15, 2023
1 parent 7b09ea3 commit 488650d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3123,6 +3123,7 @@ pub mod tests {
let result = process_entries_for_tests_without_scheduler(&bank, vec![entry]);
bank.freeze();
let blockhash_ok = bank.last_blockhash();
let bankhash_ok = bank.hash();
assert!(result.is_ok());

declare_process_instruction!(MockBuiltinErr, 1, |invoke_context| {
Expand All @@ -3142,7 +3143,6 @@ pub mod tests {
});

let mut bankhash_err = None;
let bankhash_ok = bank.hash();

(0..get_instruction_errors().len()).for_each(|err| {
let mut bank = Bank::new_for_tests(&genesis_config);
Expand Down
5 changes: 2 additions & 3 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ use {
slice::ParallelSlice,
ThreadPool, ThreadPoolBuilder,
},
solana_accounts_db::rent_collector::RENT_EXEMPT_RENT_EPOCH,
solana_accounts_db::{
account_overrides::AccountOverrides,
accounts::{
Expand All @@ -90,7 +89,7 @@ use {
epoch_accounts_hash::EpochAccountsHash,
nonce_info::{NonceInfo, NoncePartial},
partitioned_rewards::PartitionedEpochRewardsConfig,
rent_collector::{CollectedInfo, RentCollector},
rent_collector::{CollectedInfo, RentCollector, RENT_EXEMPT_RENT_EPOCH},
rent_debits::RentDebits,
sorted_storages::SortedStorages,
stake_rewards::{RewardInfo, StakeReward},
Expand Down Expand Up @@ -121,7 +120,6 @@ use {
sysvar_cache::SysvarCache,
timings::{ExecuteDetailsTimings, ExecuteTimingType, ExecuteTimings},
},
solana_sdk::rent::RentDue,
solana_sdk::{
account::{
create_account_shared_data_with_fields as create_account, from_account, Account,
Expand Down Expand Up @@ -161,6 +159,7 @@ use {
packet::PACKET_DATA_SIZE,
precompiles::get_precompiles,
pubkey::Pubkey,
rent::RentDue,
saturating_add_assign,
signature::{Keypair, Signature},
slot_hashes::SlotHashes,
Expand Down

0 comments on commit 488650d

Please sign in to comment.