mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Handle create/call depth limit in CREATE instruction
This commit is contained in:
parent
20190b145b
commit
43e08ea32d
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Reference in a new issue