Skip to content

Commit

Permalink
use original feature to enable ed25519 builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Feb 18, 2022
1 parent 389ebcf commit e4c9a4a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3224,7 +3224,7 @@ impl Bank {
let (lamports, rent_epoch) = self.inherit_specially_retained_account_fields(&None);
let account = AccountSharedData::from(Account {
lamports,
owner: solana_sdk::system_program::id(),
owner: native_loader::id(),
data: vec![],
executable: true,
rent_epoch,
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ fn feature_builtins() -> Vec<(Builtin, Pubkey, ActivationType)> {
solana_sdk::ed25519_program::id(),
dummy_process_instruction,
),
feature_set::fix_ed25519_program_owner::id(),
feature_set::ed25519_program_enabled::id(),
ActivationType::NewProgram,
),
(
Expand Down
5 changes: 0 additions & 5 deletions sdk/src/feature_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ pub mod add_get_processed_sibling_instruction_syscall {
solana_sdk::declare_id!("CFK1hRCNy8JJuAAY8Pb2GjLFNdCThS2qwZNe3izzBMgn");
}

pub mod fix_ed25519_program_owner {
solana_sdk::declare_id!("J2bcyU6gyhVBASNT3ZwaMkd5dPFyi83vrT42JhLjJfm7");
}

lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
Expand Down Expand Up @@ -372,7 +368,6 @@ lazy_static! {
(disable_bpf_deprecated_load_instructions::id(), "Disable ldabs* and ldind* BPF instructions"),
(disable_bpf_unresolved_symbols_at_runtime::id(), "Disable reporting of unresolved BPF symbols at runtime"),
(add_get_processed_sibling_instruction_syscall::id(), "add add_get_processed_sibling_instruction_syscall"),
(fix_ed25519_program_owner::id(), "fix ed25519 program owner"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()
Expand Down

0 comments on commit e4c9a4a

Please sign in to comment.