Skip to content

Commit 89f3fbf

Browse files
committed
[Wip] Implement simple subroutine opcodes
1 parent 3f7deca commit 89f3fbf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eth/vm/computation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
from eth.vm.stack import (
7272
Stack,
7373
)
74+
from eth.vm.rstack import (
75+
RStack,
76+
)
7477

7578

7679
def NO_RESULT(computation: ComputationAPI) -> None:
@@ -140,6 +143,7 @@ def __init__(self,
140143

141144
self._memory = Memory()
142145
self._stack = Stack()
146+
self._rstack = RStack()
143147
self._gas_meter = self.get_gas_meter()
144148

145149
self.children = []

eth/vm/logic/flow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ def jumpsub(computation: BaseComputation) -> None:
7979

8080
else:
8181
computation.code.program_counter += 1
82-
83-
if computation.rstack.length >= 1023:
84-
#TODO: abort execution
85-
pass
8682

8783
computation.rstack_push_int(temp + 1)
8884

0 commit comments

Comments
 (0)