• Sina Mahmoodi's avatar
    core,eth: call frame tracing (#23087) · 40135497
    Sina Mahmoodi authored
    
    This change introduces 2 new optional methods; `enter()` and `exit()` for js tracers, and makes `step()` optiona. The two new methods are invoked when entering and exiting a call frame (but not invoked for the outermost scope, which has it's own methods). Currently these are the data fields passed to each of them:
    
        enter: type (opcode), from, to, input, gas, value
        exit: output, gasUsed, error
    
    The PR also comes with a re-write of the callTracer. As a backup we keep the previous tracing script under the name `callTracerLegacy`. Behaviour of both tracers are equivalent for the most part, although there are some small differences (improvements), where the new tracer is more correct / has more information. 
    40135497
Name
Last commit
Last update
..
runtime Loading commit data...
testdata Loading commit data...
access_list_tracer.go Loading commit data...
analysis.go Loading commit data...
analysis_test.go Loading commit data...
common.go Loading commit data...
contract.go Loading commit data...
contracts.go Loading commit data...
contracts_test.go Loading commit data...
doc.go Loading commit data...
eips.go Loading commit data...
errors.go Loading commit data...
evm.go Loading commit data...
gas.go Loading commit data...
gas_table.go Loading commit data...
gas_table_test.go Loading commit data...
gen_structlog.go Loading commit data...
instructions.go Loading commit data...
instructions_test.go Loading commit data...
interface.go Loading commit data...
interpreter.go Loading commit data...
jump_table.go Loading commit data...
logger.go Loading commit data...
logger_json.go Loading commit data...
logger_test.go Loading commit data...
memory.go Loading commit data...
memory_table.go Loading commit data...
opcodes.go Loading commit data...
operations_acl.go Loading commit data...
stack.go Loading commit data...
stack_table.go Loading commit data...