• Chris Ziogas's avatar
    eth/tracers: add native flatCallTracer (aka parity style tracer) (#26377) · 2ad150d9
    Chris Ziogas authored
    Adds support for a native call tracer with the Parity format, which outputs call frames
    in a flat array. This tracer accepts the following options:
    
    - `convertParityErrors: true` will convert error messages to match those of Parity
    - `includePrecompiles: true` will report all calls to precompiles. The default
      matches Parity's behavior where CALL and STATICCALLs to precompiles are excluded
    
    Incompatibilities with Parity include:
    
    - Parity removes the result object in case of failure. This behavior is maintained
      with the exception of reverts. Revert output usually contains useful information,
      i.e. Solidity revert reason.
    - The `gasUsed` field accounts for intrinsic gas (e.g. 21000 for simple transfers)
      and refunds unlike Parity
    - Block rewards are not reported
    Co-authored-by: 's avatarSina Mahmoodi <itz.s1na@gmail.com>
    2ad150d9
gen_flatcallresult_json.go 1.42 KB