mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 22:04:52 +00:00
fixes transaction_tracer.nim: tracing depth
This commit is contained in:
parent
04f28d9048
commit
44d05dfdb1
@ -33,7 +33,7 @@ proc traceOpCodeStarted*(tracer: var TransactionTracer, c: BaseComputation, op:
|
|||||||
|
|
||||||
j["op"] = %(($op).toUpperAscii)
|
j["op"] = %(($op).toUpperAscii)
|
||||||
j["pc"] = %(c.code.pc - 1)
|
j["pc"] = %(c.code.pc - 1)
|
||||||
j["depth"] = %1 # stub
|
j["depth"] = %(c.msg.depth + 1)
|
||||||
j["gas"] = %c.gasMeter.gasRemaining
|
j["gas"] = %c.gasMeter.gasRemaining
|
||||||
tracer.gasRemaining = c.gasMeter.gasRemaining
|
tracer.gasRemaining = c.gasMeter.gasRemaining
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user