Skip to content

Commit 223260d

Browse files
committed
clean up feature gate
1 parent 097cca7 commit 223260d

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

compute-budget-instruction/src/builtin_programs_filter.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ mod test {
115115
solana_sdk_ids::stake::id(),
116116
feature_set::migrate_stake_program_to_core_bpf::id(),
117117
),
118-
(
119-
solana_sdk_ids::config::id(),
120-
feature_set::migrate_config_program_to_core_bpf::id(),
121-
),
122118
(
123119
solana_sdk_ids::address_lookup_table::id(),
124120
feature_set::migrate_address_lookup_table_program_to_core_bpf::id(),

program-test/src/programs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static CORE_BPF_PROGRAMS: &[(Pubkey, Option<Pubkey>, &[u8])] = &[
5656
),
5757
(
5858
solana_sdk_ids::config::ID,
59-
Some(feature_set::migrate_config_program_to_core_bpf::ID),
59+
None,
6060
include_bytes!("programs/core_bpf_config-3.0.0.so"),
6161
),
6262
(

test-validator/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,8 +1303,8 @@ mod test {
13031303
async fn test_core_bpf_programs() {
13041304
let (test_validator, _payer) = TestValidatorGenesis::default()
13051305
.deactivate_features(&[
1306-
// Don't migrate the config program.
1307-
solana_sdk::feature_set::migrate_config_program_to_core_bpf::id(),
1306+
// Don't migrate the lookup table program.
1307+
solana_sdk::feature_set::migrate_address_lookup_table_program_to_core_bpf::id(),
13081308
])
13091309
.start_async()
13101310
.await;
@@ -1320,14 +1320,14 @@ mod test {
13201320
.await
13211321
.unwrap();
13221322

1323-
// Address lookup table is a BPF program.
1323+
// Address lookup table is builtin.
13241324
let account = fetched_programs[0].as_ref().unwrap();
1325-
assert_eq!(account.owner, solana_sdk_ids::bpf_loader_upgradeable::id());
1325+
assert_eq!(account.owner, solana_sdk_ids::native_loader::id());
13261326
assert!(account.executable);
13271327

1328-
// Config is a builtin.
1328+
// Config is a a BPF program.
13291329
let account = fetched_programs[1].as_ref().unwrap();
1330-
assert_eq!(account.owner, solana_sdk_ids::native_loader::id());
1330+
assert_eq!(account.owner, solana_sdk_ids::bpf_loader_upgradeable::id());
13311331
assert!(account.executable);
13321332

13331333
// Feature Gate is a BPF program.

0 commit comments

Comments
 (0)