Remove non-essential programs from runtime/

This commit is contained in:
Michael Vines
2019-03-12 11:44:41 -07:00
parent 3d2b7dd1ef
commit 1ee43a7633
11 changed files with 119 additions and 77 deletions

View File

@ -332,7 +332,13 @@ mod tests {
#[test]
fn test_account_subscribe() {
let (genesis_block, alice) = GenesisBlock::new(10_000);
let (mut genesis_block, alice) = GenesisBlock::new(10_000);
// This test depends on the budget program
genesis_block
.native_programs
.push(("solana_budget_program".to_string(), solana_budget_api::id()));
let bob_pubkey = Keypair::new().pubkey();
let witness = Keypair::new();
let contract_funds = Keypair::new();

View File

@ -423,7 +423,12 @@ pub fn new_fullnode() -> (Fullnode, ContactInfo, Keypair, String) {
let node = Node::new_localhost_with_pubkey(&node_keypair.pubkey());
let contact_info = node.info.clone();
let (genesis_block, mint_keypair) = GenesisBlock::new_with_leader(10_000, &contact_info.id, 42);
let (mut genesis_block, mint_keypair) =
GenesisBlock::new_with_leader(10_000, &contact_info.id, 42);
genesis_block
.native_programs
.push(("solana_budget_program".to_string(), solana_budget_api::id()));
let (ledger_path, _blockhash) = create_new_tmp_ledger!(&genesis_block);
let voting_keypair = Keypair::new();