Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
restore: Restore some code since now covered in separate PR #10658
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed May 14, 2019
1 parent 98b83c0 commit a81a1b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion evmbin/benches/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! benchmarking for EVM
//! should be started with:
//! ```bash
//! rustup run nightly cargo bench
//! multirust run nightly cargo bench
//! ```
#![feature(test)]
Expand Down
20 changes: 0 additions & 20 deletions evmbin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.

//! 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;
Expand Down Expand Up @@ -282,17 +266,13 @@ 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<U256, String> {
match self.flag_gas {
Some(ref gas) => gas.parse().map_err(to_string),
None => Ok(U256::from(u64::max_value())),
}
}

/// 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<U256, String> {
match self.flag_gas_price {
Some(ref gas_price) => gas_price.parse().map_err(to_string),
Expand Down

0 comments on commit a81a1b8

Please sign in to comment.