Make default programs static (#9717)
This commit is contained in:
@@ -5,7 +5,7 @@ use solana_sdk::{
|
||||
pubkey::Pubkey,
|
||||
rent::Rent,
|
||||
signature::{Keypair, Signer},
|
||||
system_program::{self, solana_system_program},
|
||||
system_program,
|
||||
};
|
||||
use solana_stake_program::stake_state;
|
||||
use solana_vote_program::vote_state;
|
||||
@@ -133,17 +133,9 @@ pub fn create_genesis_config_with_leader_ex(
|
||||
.cloned()
|
||||
.collect();
|
||||
|
||||
// Bare minimum program set
|
||||
let native_instruction_processors = vec![
|
||||
solana_system_program(),
|
||||
solana_vote_program!(),
|
||||
solana_stake_program!(),
|
||||
];
|
||||
|
||||
let fee_rate_governor = FeeRateGovernor::new(0, 0); // most tests can't handle transaction fees
|
||||
let mut genesis_config = GenesisConfig {
|
||||
accounts,
|
||||
native_instruction_processors,
|
||||
fee_rate_governor,
|
||||
rent,
|
||||
..GenesisConfig::default()
|
||||
|
Reference in New Issue
Block a user