Skip to content

rpc align debug trace flags with execution-apis spec (#762)#20755

Merged
AskAlexSharov merged 10 commits intomainfrom
lupin012/trace-enable-flags
Apr 26, 2026
Merged

rpc align debug trace flags with execution-apis spec (#762)#20755
AskAlexSharov merged 10 commits intomainfrom
lupin012/trace-enable-flags

Conversation

@lupin012
Copy link
Copy Markdown
Contributor

@lupin012 lupin012 commented Apr 23, 2026

Replace disableMemory/disableReturnData (opt-out, default ON) with enableMemory/enableReturnData (opt-in, default OFF) to match the ethereum/execution-apis#762 spec and Geth behavior. Also adds returnData emission to JsonStreamLogger which was previously missing. evm tool flags (--nomemory/--noreturndata) preserve existing behavior.

needs Rpc-test tag

@lupin012 lupin012 force-pushed the lupin012/trace-enable-flags branch from c728a3d to 1787e4d Compare April 24, 2026 12:12
lupin012 and others added 6 commits April 25, 2026 07:20
Replace disableMemory/disableReturnData (opt-out, default ON) with
enableMemory/enableReturnData (opt-in, default OFF) to match the
ethereum/execution-apis#762 spec and Geth behavior. Also adds
returnData emission to JsonStreamLogger which was previously missing.
evm tool flags (--nomemory/--noreturndata) preserve existing behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… > 63 bytes

hexWithPrefix uses a fixed [128]byte buffer which silently truncates return
data longer than 63 bytes. Switch to hex.EncodeToString which allocates the
correct length.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ncoding

Replaces "0x" + hex.EncodeToString with hexutil.Encode which preallocates
the exact buffer size in a single allocation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lupin012 lupin012 force-pushed the lupin012/trace-enable-flags branch from 87aace3 to 4f46c0c Compare April 25, 2026 05:20
lupin012 and others added 3 commits April 25, 2026 07:28
…urnData

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…EnableReturnData is set

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AskAlexSharov AskAlexSharov added this pull request to the merge queue Apr 25, 2026
Merged via the queue into main with commit 7d7ceeb Apr 26, 2026
38 checks passed
@AskAlexSharov AskAlexSharov deleted the lupin012/trace-enable-flags branch April 26, 2026 00:51
Sahil-4555 pushed a commit to Sahil-4555/erigon that referenced this pull request Apr 27, 2026
…erigontech#20755)

Replace disableMemory/disableReturnData (opt-out, default ON) with
enableMemory/enableReturnData (opt-in, default OFF) to match the
ethereum/execution-apis#762 spec and Geth behavior. Also adds returnData
emission to JsonStreamLogger which was previously missing. evm tool
flags (--nomemory/--noreturndata) preserve existing behavior.

needs Rpc-test tag

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants