Synchronize and cleanup instruction processor lists (#5356)

This commit is contained in:
Jack May
2019-07-31 14:28:14 -07:00
committed by GitHub
parent 1d6bafbc77
commit d09afdbefe
13 changed files with 121 additions and 85 deletions

View File

@ -1,3 +1,4 @@
//use solana_programs::get_default_native_instruction_processors;
use solana_sdk::{
account::Account,
fee_calculator::FeeCalculator,
@ -66,6 +67,7 @@ pub fn create_genesis_block_with_leader(
),
),
])
// Bare minimum
.native_instruction_processors(&[
solana_bpf_loader_program!(),
solana_vote_program!(),

View File

@ -157,7 +157,7 @@ impl Default for MessageProcessor {
}
impl MessageProcessor {
/// Add a static entrypoint to intercept intructions before the dynamic loader.
/// Add a static entrypoint to intercept instructions before the dynamic loader.
pub fn add_instruction_processor(
&mut self,
program_id: Pubkey,