From 75f407e1914b23e3f5d76e28b1db925a9fd39be3 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 12 Dec 2018 11:59:36 -0800 Subject: [PATCH] Provide entire elf to bpf_loader --- src/wallet.rs | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/src/wallet.rs b/src/wallet.rs index c609c2f72da683..fe72c4eeffb605 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -6,7 +6,6 @@ use bincode::serialize; use bs58; use chrono::prelude::*; use clap::ArgMatches; -use elf; use ring::rand::SystemRandom; use ring::signature::Ed25519KeyPair; use serde_json; @@ -21,7 +20,7 @@ use solana_sdk::signature::{Keypair, KeypairUtil, Signature}; use solana_sdk::system_transaction::SystemTransaction; use solana_sdk::transaction::Transaction; use std::fs::{self, File}; -use std::io::Write; +use std::io::{Read, Write}; use std::net::{Ipv4Addr, SocketAddr}; use std::path::Path; use std::str::FromStr; @@ -29,7 +28,6 @@ use std::thread::sleep; use std::time::Duration; use std::{error, fmt, mem}; -const PLATFORM_SECTION_C: &str = ".text.entrypoint"; const USERDATA_CHUNK_SIZE: usize = 256; #[derive(Debug, PartialEq)] @@ -411,23 +409,22 @@ pub fn process_command(config: &WalletConfig) -> Result Result Result