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 standard debug rpc #1237

Merged
merged 2 commits into from
Jan 3, 2024
Merged

feat: add standard debug rpc #1237

merged 2 commits into from
Jan 3, 2024

Conversation

koushiro
Copy link
Collaborator

@koushiro koushiro commented Nov 1, 2023

ethereum api doc: https://ethereum.github.io/execution-apis/api-documentation/

  • debug_getRawHeader
  • debug_getRawBlock
  • debug_getRawTransaction
  • debug_getRawReceipts
  • debug_getBadBlocks

Close #1007

- debug_getRawHeader
- debug_getRawBlock
- debug_getRawTransaction
- debug_getRawReceipts
- debug_getBadBlocks
@koushiro koushiro requested a review from sorpaas as a code owner November 1, 2023 07:04
@koushiro koushiro changed the title feat: add debug standard rpc feat: add standard debug rpc Nov 1, 2023
}
}

async fn block_by(&self, number: BlockNumberOrHash) -> RpcResult<Option<ethereum::BlockV2>>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Methods like block_by, transaction_by, receipts_by have a lot of duplicate code with the methods in the eth module. I plan to add a helpful mapping backend type in the future RPs to reduce duplicate code and improve maintainability.

@koushiro
Copy link
Collaborator Author

koushiro commented Nov 2, 2023

@sorpaas PTAL

@sorpaas sorpaas merged commit 34159d0 into polkadot-evm:master Jan 3, 2024
5 checks passed
@koushiro koushiro deleted the support-standard-debug branch January 3, 2024 12:19
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.

Consider supporting standard debug rpc
2 participants