Rename native_program.rs to instruction_processor_utils.rs

Prefer the term "instruction processor" over "program". Reserve
the term "native" for the loader and shared object it loads.
Compiling an instruction processor to BPF shouldn't imply changing
to a non-native entrypoint.
This commit is contained in:
Greg Fitzgerald
2019-04-02 08:29:28 -06:00
parent dd4c512954
commit 0a9f063d3e
5 changed files with 20 additions and 21 deletions

View File

@ -4,10 +4,10 @@ pub mod fee_calculator;
pub mod genesis_block;
pub mod hash;
pub mod instruction;
pub mod instruction_processor_utils;
pub mod loader_instruction;
pub mod message;
pub mod native_loader;
pub mod native_program;
pub mod packet;
pub mod pubkey;
pub mod rpc_port;

View File

@ -14,7 +14,7 @@ pub fn check_id(program_id: &Pubkey) -> bool {
}
/// Create an executable account with the given shared object name.
pub fn create_program_account(name: &str) -> Account {
pub fn create_loadable_account(name: &str) -> Account {
Account {
lamports: 1,
owner: id(),