get DLL names from programs that made the DLL (#4269)

* get program names from programs

* fixup
This commit is contained in:
Rob Walker
2019-05-13 14:17:44 -07:00
committed by GitHub
parent 796000e96f
commit 0d2574f8f0
10 changed files with 36 additions and 11 deletions

View File

@ -28,6 +28,7 @@ solana-metrics = { path = "../metrics", version = "0.15.0" }
solana-sdk = { path = "../sdk", version = "0.15.0" }
solana-stake-api = { path = "../programs/stake_api", version = "0.15.0" }
solana-vote-api = { path = "../programs/vote_api", version = "0.15.0" }
solana-vote-program = { path = "../programs/vote_program", version = "0.15.0" }
[lib]
name = "solana_runtime"

View File

@ -2,7 +2,6 @@
//! programs. It offers a high-level API that signs transactions
//! on behalf of the caller, and a low-level API for when they have
//! already been signed and verified.
use crate::accounts::{AccountLockType, Accounts};
use crate::accounts_db::{ErrorCounters, InstructionAccounts, InstructionLoaders};
use crate::accounts_index::Fork;
@ -383,7 +382,10 @@ impl Bank {
"solana_bpf_loader",
&solana_sdk::bpf_loader::id(),
);
self.register_native_instruction_processor("solana_vote_program", &solana_vote_api::id());
self.register_native_instruction_processor(
&solana_vote_program!().0,
&solana_vote_program!().1,
);
// Add additional native programs specified in the genesis block
for (name, program_id) in &genesis_block.native_instruction_processors {

View File

@ -17,5 +17,8 @@ mod system_instruction_processor;
#[macro_use]
extern crate solana_metrics;
#[macro_use]
extern crate solana_vote_program;
#[macro_use]
extern crate serde_derive;