Browse Source

Handle create/call depth limit in CREATE instruction

cl-refactor
Paweł Bylica 10 years ago
parent
commit
43e08ea32d
  1. 5
      libevmjit-cpp/Env.cpp

5
libevmjit-cpp/Env.cpp

@ -49,7 +49,10 @@ extern "C"
EXPORT void env_create(ExtVMFace* _env, i256* io_gas, i256* _endowment, byte* _initBeg, uint64_t _initSize, h256* o_address)
{
assert(_env->depth < 1024); // TODO: Handle call depth
if (_env->depth == 1024)
jit::terminate(jit::ReturnCode::OutOfGas);
assert(_env->depth < 1024);
auto endowment = llvm2eth(*_endowment);

Loading…
Cancel
Save