Account->AccountSharedData (#15691)
This commit is contained in:
committed by
GitHub
parent
61c7ce857e
commit
8a3135d17b
@@ -424,7 +424,7 @@ mod test {
|
||||
use super::*;
|
||||
use crate::genesis_utils::create_genesis_config;
|
||||
use crossbeam_channel::unbounded;
|
||||
use solana_sdk::{account::Account, pubkey::Pubkey};
|
||||
use solana_sdk::{account::AccountSharedData, pubkey::Pubkey};
|
||||
|
||||
#[test]
|
||||
fn test_accounts_background_service_remove_dead_slots() {
|
||||
@@ -438,7 +438,10 @@ mod test {
|
||||
|
||||
// Store an account in slot 0
|
||||
let account_key = Pubkey::new_unique();
|
||||
bank0.store_account(&account_key, &Account::new(264, 0, &Pubkey::default()));
|
||||
bank0.store_account(
|
||||
&account_key,
|
||||
&AccountSharedData::new(264, 0, &Pubkey::default()),
|
||||
);
|
||||
assert!(bank0.get_account(&account_key).is_some());
|
||||
pruned_banks_sender.send(0).unwrap();
|
||||
AccountsBackgroundService::remove_dead_slots(&bank0, &request_handler, &mut 0, &mut 0);
|
||||
|
Reference in New Issue
Block a user