mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 13:55:45 +00:00
fix block 2283416 problem
This commit is contained in:
parent
3bbe7fede3
commit
34fd831d6f
@ -154,10 +154,6 @@ proc writeContract*(computation: BaseComputation, fork: Fork): bool =
|
||||
result = false
|
||||
|
||||
proc transferBalance(computation: BaseComputation, opCode: static[Op]) =
|
||||
if computation.msg.depth > MaxCallDepth:
|
||||
computation.setError(&"Stack depth limit reached depth={computation.msg.depth}")
|
||||
return
|
||||
|
||||
let senderBalance = computation.vmState.readOnlyStateDb().
|
||||
getBalance(computation.msg.sender)
|
||||
|
||||
@ -193,6 +189,11 @@ proc postExecuteVM(computation: BaseComputation) =
|
||||
proc executeOpcodes*(computation: BaseComputation) {.gcsafe.}
|
||||
|
||||
proc applyMessage*(computation: BaseComputation, opCode: static[Op]) =
|
||||
if computation.msg.depth > MaxCallDepth:
|
||||
computation.setError(&"Stack depth limit reached depth={computation.msg.depth}")
|
||||
computation.nextProc()
|
||||
return
|
||||
|
||||
computation.snapshot()
|
||||
defer:
|
||||
computation.dispose()
|
||||
|
Loading…
x
Reference in New Issue
Block a user