From 3c41410e0a71423bf2835e38328c413b9febe9d6 Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Mon, 26 Aug 2019 16:01:52 +0200 Subject: [PATCH] Instruction prices are now provided by EVMC according to used revision So hard-coding them inside implementation is redundant now. --- libaleth-interpreter/VM.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libaleth-interpreter/VM.cpp b/libaleth-interpreter/VM.cpp index ba37fb7ad59..37e17c14cb6 100644 --- a/libaleth-interpreter/VM.cpp +++ b/libaleth-interpreter/VM.cpp @@ -377,7 +377,6 @@ void VM::interpretCases() if (m_message->flags & EVMC_STATIC) throwDisallowedStateChange(); - m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 5000 : 0; evmc_address destination = toEvmC(asAddress(m_SP[0])); // After EIP158 zero-value suicides do not have to pay account creation gas. @@ -911,7 +910,6 @@ void VM::interpretCases() CASE(BALANCE) { - m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 400 : 20; ON_OP(); updateIOGas(); @@ -994,7 +992,6 @@ void VM::interpretCases() CASE(EXTCODESIZE) { - m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 700 : 20; ON_OP(); updateIOGas(); @@ -1060,7 +1057,6 @@ void VM::interpretCases() CASE(EXTCODECOPY) { ON_OP(); - m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 700 : 20; uint64_t copyMemSize = toInt63(m_SP[3]); m_copyMemSize = copyMemSize; updateMem(memNeed(m_SP[1], m_SP[3])); @@ -1359,7 +1355,6 @@ void VM::interpretCases() CASE(SLOAD) { - m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 200 : 50; ON_OP(); updateIOGas();