Skip to content

Commit

Permalink
Merge pull request ethereum#815 from holiman/fix_indentation
Browse files Browse the repository at this point in the history
vm: fix indentation and some errors
  • Loading branch information
holiman authored Oct 18, 2017
2 parents 321a114 + 0cb3343 commit 6bf69d2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ethereum/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,7 @@ def vm_trace(ext, msg, compustate, opcode, pushcache, tracer=log_vm_op):
trace_data['steps'] = compustate.steps
trace_data['depth'] = msg.depth
if op[:4] == 'PUSH':
if sys.version_info.major == 2:
print repr(pushcache)
else:
print(repr(pushcache))

print(repr(pushcache))
trace_data['pushvalue'] = pushcache[compustate.prev_pc]
tracer.trace('vm', op=op, **trace_data)
compustate.steps += 1
Expand All @@ -263,7 +259,8 @@ def vm_execute(ext, msg, code):

# For tracing purposes
op = None

_prevop = None
steps = 0
while compustate.pc < codelen:

opcode = safe_ord(code[compustate.pc])
Expand Down

0 comments on commit 6bf69d2

Please sign in to comment.