Skip to content

test: support debug_getRaw* RPCs#5284

Merged
StephenButtolph merged 16 commits intomasterfrom
JonathanOppenheimer/test-debug-raw-rpcs
Apr 30, 2026
Merged

test: support debug_getRaw* RPCs#5284
StephenButtolph merged 16 commits intomasterfrom
JonathanOppenheimer/test-debug-raw-rpcs

Conversation

@JonathanOppenheimer
Copy link
Copy Markdown
Contributor

Why this should be merged

This PR adds test coverage for the remaining debug_getRaw* RPC methods, now that BlockByNumberOrHash and GetReceipts have been implemented. I also added coverage for debug_printBlock as it seems this was mistakenly added to the list without being tested.

How this works

Self-explanatory.

How this was tested

CI

Need to be documented in RELEASES.md?

No

JonathanOppenheimer and others added 5 commits April 15, 2026 13:07
In `TestGetReceipts` - new entries in the test table covering previously
untested lookup paths:
- `debug_getRawReceipts` (and `eth_getBlockReceipts`) by explicit block
number for on-disk, settled, and unsettled blocks - previously only
tested by hash.
- `debug_getRawReceipts` (and `eth_getBlockReceipts`) for
`SafeBlockNumber` and `FinalizedBlockNumber` - previously only
`LatestBlockNumber` was covered.

Signed-off-by: Tsvetan Dimitrov (tsvetan.dimitrov@avalabs.org)
Copilot AI review requested due to automatic review settings April 15, 2026 13:09
@JonathanOppenheimer JonathanOppenheimer changed the title Jonathan oppenheimer/test debug raw rpcs test: support debug_getRaw* RPCs Apr 15, 2026
@JonathanOppenheimer JonathanOppenheimer self-assigned this Apr 15, 2026
@JonathanOppenheimer JonathanOppenheimer added evm Related to EVM functionality sae labels Apr 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands SAE’s JSON-RPC test suite to cover the remaining debug_getRaw* methods (block/header/receipts/transaction) and adds coverage for debug_printBlock, now that the underlying receipt and block lookup paths are implemented.

Changes:

  • Add new RPC tests for mempool raw transaction retrieval (eth_getRawTransactionByHash, debug_getRawTransaction).
  • Extend existing block/receipt getter tests to validate debug_getRawBlock, debug_getRawHeader, and debug_getRawReceipts outputs (RLP / raw encodings).
  • Update debug RPC integration tests to include debug_printBlock, and refresh the debug namespace comment list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
vms/saevm/sae/rpc_test.go Adds/extends RPC tests to cover debug raw getters for blocks, headers, receipts, and transactions (including mempool).
vms/saevm/sae/rpc/server.go Updates the inline documentation list of debug RPC methods exposed when DB inspecting is enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vms/saevm/sae/rpc_test.go Outdated
@JonathanOppenheimer JonathanOppenheimer deleted the JonathanOppenheimer/test-debug-raw-rpcs branch April 15, 2026 13:21
@github-project-automation github-project-automation Bot moved this to Done 🎉 in avalanchego Apr 15, 2026
@JonathanOppenheimer JonathanOppenheimer restored the JonathanOppenheimer/test-debug-raw-rpcs branch April 15, 2026 13:22
@github-project-automation github-project-automation Bot moved this from Done 🎉 to In Progress 🏗️ in avalanchego Apr 15, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com>
@JonathanOppenheimer
Copy link
Copy Markdown
Contributor Author

See ava-labs/strevm#257 for a number of comments in the original PR.

Comment thread vms/saevm/sae/rpc_test.go Outdated
@JonathanOppenheimer JonathanOppenheimer force-pushed the JonathanOppenheimer/test-debug-raw-rpcs branch from 67a3d15 to 9c03f8b Compare April 30, 2026 21:08
Comment thread vms/saevm/sae/rpc_test.go Outdated
Comment thread vms/saevm/sae/rpc_test.go Outdated
Comment thread vms/saevm/sae/rpc_test.go Outdated
Comment thread vms/saevm/sae/rpc_test.go
JonathanOppenheimer and others added 4 commits April 30, 2026 23:57
Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com>
@StephenButtolph StephenButtolph added this pull request to the merge queue Apr 30, 2026
Merged via the queue into master with commit 8a025f4 Apr 30, 2026
60 checks passed
@StephenButtolph StephenButtolph deleted the JonathanOppenheimer/test-debug-raw-rpcs branch April 30, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

evm Related to EVM functionality sae

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants