Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add missing debug_* rpc methods #986

Merged
merged 9 commits into from
Jun 28, 2024

Conversation

alexfertel
Copy link
Contributor

Motivation

Adds the missing debug_* methods in #926

Note that even though the issue says that we want to achieve full compatibility with reth, some of these methods are not implemented, like debug_getBadBlocks.

Also note that the tests are dummies because:

  • Proper tests should probably live in the node implementations.
  • These methods are not supported by anvil.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@alexfertel alexfertel changed the title feat: add debug_getRawHeader feat: add missing debug_* rpc methods Jun 28, 2024
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

there are a few more debug_ functions that are very geth specific, these were initially added for geth debugging purposes

@mattsse mattsse merged commit 91e5628 into alloy-rs:main Jun 28, 2024
22 checks passed
@alexfertel alexfertel deleted the missing-debug-methods branch June 28, 2024 17:43
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* feat: add debug_getRawHeader

* feat: add debug_getRawBlock

* feat: add debug_getRawTransaction

* feat: add debug_getRawReceipts

* feat: add debug_getBadBlocks

* feat: add debug_traceChain

* feat: add debug_traceBlock

* lint(fmt): fix formatting

* fix: hex encode rlp_block bytes
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.

3 participants