Skip to content

test: support debug_getRaw* RPCs#257

Open
JonathanOppenheimer wants to merge 4 commits intomainfrom
JonathanOppenheimer/test-debug-raw-rpcs
Open

test: support debug_getRaw* RPCs#257
JonathanOppenheimer wants to merge 4 commits intomainfrom
JonathanOppenheimer/test-debug-raw-rpcs

Conversation

@JonathanOppenheimer
Copy link
Member

@JonathanOppenheimer JonathanOppenheimer commented Mar 3, 2026

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.

@JonathanOppenheimer JonathanOppenheimer self-assigned this Mar 3, 2026
@JonathanOppenheimer JonathanOppenheimer added the testing Related to testing efforts label Mar 3, 2026
@JonathanOppenheimer JonathanOppenheimer changed the title test: support debug_getRaw* RPCs test: support debug_getRaw* RPCs Mar 3, 2026
@JonathanOppenheimer JonathanOppenheimer marked this pull request as ready for review March 3, 2026 20:01
Copy link
Contributor

@StephenButtolph StephenButtolph left a comment

Choose a reason for hiding this comment

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

Related comment from a prior PR: #154 (comment)

@JonathanOppenheimer
Copy link
Member Author

Related comment from a prior PR: #154 (comment)

Addressed.

Copy link
Contributor

@alarso16 alarso16 left a comment

Choose a reason for hiding this comment

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

Seems ok, more test coverage can't be bad

@JonathanOppenheimer JonathanOppenheimer force-pushed the JonathanOppenheimer/test-debug-raw-rpcs branch from 4dda5c0 to 33aa6fa Compare March 13, 2026 16:43
@JonathanOppenheimer JonathanOppenheimer force-pushed the JonathanOppenheimer/test-debug-raw-rpcs branch from 33aa6fa to 7260f32 Compare March 13, 2026 16:45
@JonathanOppenheimer
Copy link
Member Author

JonathanOppenheimer commented Mar 13, 2026

Note that #280 did introduce another behavior change -- notFoundIsNil() swallows ErrFutureBlockNotResolved (since it wraps ErrNotFound), so debug_getRawBlock and debug_getRawHeader return nil for unknown block numbers instead of an error as it did previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to testing efforts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants