Account->AccountSharedData (#15691)

This commit is contained in:
Jeff Washington (jwash)
2021-03-09 15:06:07 -06:00
committed by GitHub
parent 61c7ce857e
commit 8a3135d17b
71 changed files with 2032 additions and 1161 deletions

View File

@ -31,7 +31,7 @@ use solana_runtime::{
snapshot_utils::SnapshotVersion,
};
use solana_sdk::{
account::Account,
account::AccountSharedData,
clock::{Epoch, Slot},
feature::{self, Feature},
feature_set,
@ -1876,7 +1876,7 @@ fn main() {
if let Some(faucet_pubkey) = faucet_pubkey {
bank.store_account(
&faucet_pubkey,
&Account::new(faucet_lamports, 0, &system_program::id()),
&AccountSharedData::new(faucet_lamports, 0, &system_program::id()),
);
}
@ -1936,7 +1936,7 @@ fn main() {
bank.store_account(
identity_pubkey,
&Account::new(
&AccountSharedData::new(
bootstrap_validator_lamports,
0,
&system_program::id(),
@ -2253,7 +2253,7 @@ fn main() {
// capitalizaion, which doesn't affect inflation behavior!
base_bank.store_account(
&feature_set::secp256k1_program_enabled::id(),
&Account::default(),
&AccountSharedData::default(),
);
force_enabled_count -= 1;
} else {
@ -2270,7 +2270,7 @@ fn main() {
// capitalizaion, which doesn't affect inflation behavior!
base_bank.store_account(
&feature_set::instructions_sysvar_enabled::id(),
&Account::default(),
&AccountSharedData::default(),
);
force_enabled_count -= 1;
} else {