Browse Source

+= should have been = in VM gas calc.

cl-refactor
Gav Wood 11 years ago
parent
commit
0ba1b7842e
  1. 4
      libevm/VM.h

4
libevm/VM.h

@ -120,7 +120,7 @@ template <class Ext> eth::bytesConstRef eth::VM::go(Ext& _ext, uint64_t _steps)
break;
case Instruction::SLOAD:
runGas += c_sloadGas;
runGas = c_sloadGas;
break;
// These all operate on memory and therefore potentially expand it:
@ -170,7 +170,7 @@ template <class Ext> eth::bytesConstRef eth::VM::go(Ext& _ext, uint64_t _steps)
unsigned inOff = (unsigned)m_stack[m_stack.size() - 2];
unsigned inSize = (unsigned)m_stack[m_stack.size() - 3];
newTempSize = inOff + inSize;
runGas += c_createGas;
runGas = c_createGas;
break;
}

Loading…
Cancel
Save