reth icon indicating copy to clipboard operation
reth copied to clipboard

`debug_traceTransaction` `enableReturnData` should be ignored for RPC responses

Open mattsse opened this issue 2 years ago • 1 comments

Describe the feature

the response type StructLogRes doesn't even include a returnData field, and this is only used for local debugging.

It should simply be ignored so we don't capture return data that we don't need

it's only used for debug_standardTraceBlockToFile and debug_standardTraceBadBlockToFile rpc calls

TODO

  • document extra fields in StructLog type (StructLogRes)
  • ignore enableReturnData setting for regular debug_trace calls that return RPC

is this correct @shekhirin ?

Additional context

No response

mattsse avatar Jun 06 '23 16:06 mattsse

Yes, that sounds right!

shekhirin avatar Jun 06 '23 19:06 shekhirin

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Jul 04 '23 02:07 github-actions[bot]

@mattsse is this still relevant?

shekhirin avatar Jul 04 '23 09:07 shekhirin

yeah, the pr is still blocked because revm pr is not included in the patch. I could finish it though with some extra code though, I think I'll just do that

mattsse avatar Jul 04 '23 11:07 mattsse

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Jul 31 '23 01:07 github-actions[bot]

actually, since enableReturnData is opt-in, it would be more effort to remove support for it in the regular rpc calls

mattsse avatar Oct 18 '23 18:10 mattsse