Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Remove from aleth-interpreter conditions for opcode prices depe… (#5724)
Browse files Browse the repository at this point in the history
Remove from aleth-interpreter conditions for opcode prices depending on EVM revision
  • Loading branch information
gumb0 authored Aug 26, 2019
2 parents a6c6cf0 + 3c41410 commit 1e25be8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libaleth-interpreter/VM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -911,7 +910,6 @@ void VM::interpretCases()

CASE(BALANCE)
{
m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 400 : 20;
ON_OP();
updateIOGas();

Expand Down Expand Up @@ -994,7 +992,6 @@ void VM::interpretCases()

CASE(EXTCODESIZE)
{
m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 700 : 20;
ON_OP();
updateIOGas();

Expand Down Expand Up @@ -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]));
Expand Down Expand Up @@ -1359,7 +1355,6 @@ void VM::interpretCases()

CASE(SLOAD)
{
m_runGas = m_rev >= EVMC_TANGERINE_WHISTLE ? 200 : 50;
ON_OP();
updateIOGas();

Expand Down

0 comments on commit 1e25be8

Please sign in to comment.