From d5f20980ebcb4b48362bdcc404f6b451b03f9f20 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Tue, 23 Oct 2018 17:15:22 -0600 Subject: [PATCH] Incorporate preloaded bpf loader --- src/wallet.rs | 53 +++++---------------------------------------------- 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/src/wallet.rs b/src/wallet.rs index 49ced97d79..d3f5ed77eb 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -1,5 +1,5 @@ use bincode::{deserialize, serialize}; -// use bpf_loader; +use bpf_loader; use bs58; use budget_program::BudgetState; use budget_transaction::BudgetTransaction; @@ -11,7 +11,6 @@ use elf; use fullnode::Config; use hash::Hash; use loader_transaction::LoaderTransaction; -use native_loader; use ring::rand::SystemRandom; use ring::signature::Ed25519KeyPair; use rpc_request::RpcRequest; @@ -30,7 +29,6 @@ use std::{error, fmt, mem}; use system_transaction::SystemTransaction; use transaction::Transaction; -// TODO: put these somewhere more logical const PLATFORM_SECTION_C: &str = ".text.entrypoint"; const USERDATA_CHUNK_SIZE: usize = 256; @@ -354,11 +352,9 @@ pub fn process_command(config: &WalletConfig) -> Result { let last_id = get_last_id(&config)?; - let tx = Transaction::budget_new_signature(&config.id, pubkey, config.id.pubkey(), last_id); let signature_str = serialize_and_send_tx(&config, &tx)?; - Ok(signature_str.to_string()) } // Confirm the last client transaction by signature @@ -387,7 +383,7 @@ pub fn process_command(config: &WalletConfig) -> Result Result Result Result