From a81a1b8f86af12d9dc9281d54e8c2bf499e46621 Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Tue, 14 May 2019 17:16:18 +0200 Subject: [PATCH] restore: Restore some code since now covered in separate PR #10658 --- evmbin/benches/mod.rs | 2 +- evmbin/src/main.rs | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/evmbin/benches/mod.rs b/evmbin/benches/mod.rs index e1f0714d3b0..7807464dd32 100644 --- a/evmbin/benches/mod.rs +++ b/evmbin/benches/mod.rs @@ -17,7 +17,7 @@ //! benchmarking for EVM //! should be started with: //! ```bash -//! rustup run nightly cargo bench +//! multirust run nightly cargo bench //! ``` #![feature(test)] diff --git a/evmbin/src/main.rs b/evmbin/src/main.rs index 5d3498ce3fb..23b3f6d1802 100644 --- a/evmbin/src/main.rs +++ b/evmbin/src/main.rs @@ -14,22 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Parity Ethereum. If not, see . -//! Parity EVM Interpreter Binary. -//! -//! ## Overview -//! -//! The Parity EVM interpreter binary is an additional tool in the Parity -//! Ethereum toolchain. It is an EVM implementation for Parity Ethereum that -//! may be used to run a standalone version of the EVM interpreter. -//! -//! ## Usage -//! -//! Build Parity Ethereum from source, then start it with: -//! ```bash -//! cd evmbin && cargo build --release && cd .. -//! ./target/release/parity-evmbin --help -//! ``` - #![warn(missing_docs)] extern crate common_types as types; @@ -282,7 +266,6 @@ struct Args { } impl Args { - /// Set the Gas Limit. Defaults to max value to allow code to run for whatever time is required. pub fn gas(&self) -> Result { match self.flag_gas { Some(ref gas) => gas.parse().map_err(to_string), @@ -290,9 +273,6 @@ impl Args { } } - /// Set the Gas Price. Defaults to zero to allow the code to run even if an account with no balance - /// is used, otherwise such accounts would not have sufficient funds to pay the transaction fee. - /// Defaulting to zero also makes testing easier since it is not necessary to specify a special configuration file. pub fn gas_price(&self) -> Result { match self.flag_gas_price { Some(ref gas_price) => gas_price.parse().map_err(to_string),