Skip to content

Commit

Permalink
No need to explicitly remove precompiles from program_accounts_map.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed May 19, 2023
1 parent 0a8ca81 commit caf8636
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4528,9 +4528,6 @@ impl Bank {
&self.blockhash_queue.read().unwrap(),
);
let native_loader = native_loader::id();
for precompile in get_precompiles() {
program_accounts_map.remove(&precompile.program_id);
}
for builtin_program in self.builtin_programs.iter() {
program_accounts_map.insert(*builtin_program, &native_loader);
}
Expand Down

0 comments on commit caf8636

Please sign in to comment.