Skip to content

proxy: add blocks support #3338

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

proxy: add blocks support #3338

wants to merge 9 commits into from

Conversation

chirag-parmar
Copy link
Contributor

@chirag-parmar chirag-parmar commented May 27, 2025

This PR adds support for block based RPC endpoints by adding the following:

  • helper functions for downloading and verifying blocks and headers via JSON-RPC API under rpc/blocks.nim
  • helper functions to verify transaction trie roots and withdrawals root under rpc/transactions.nim
  • adds block based JSON RPC method handlers (check this)

@chirag-parmar chirag-parmar changed the title add blocks support proxy: add blocks support May 27, 2025
@chirag-parmar chirag-parmar marked this pull request as ready for review May 27, 2025 21:54
@chirag-parmar
Copy link
Contributor Author

@tersec and @bhartnett all reviews have been addressed

@bhartnett
Copy link
Contributor

@chirag-parmar It would be good to get some basic unit tests on the code in the blocks.nim and transactions.nim files. I would aim for at least one test covering the success scenario of each of the public exported functions.

@chirag-parmar
Copy link
Contributor Author

@bhartnett added some basic tests

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.

4 participants