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

Send eth_getBalance requests from archive blocks to tracing node endpoint #9442

Open
vbaranov opened this issue Feb 21, 2024 · 0 comments
Open
Assignees

Comments

@vbaranov
Copy link
Member

Currently, all eth_getBalance requests, no mater whether latest or block number tag, are sent to JSON RPC endpoint (ETHEREUM_JSONRPC_HTTP_URL), which is not required to be archival in general.

We should send eth_getBalance requests to archival node endpoint (ETHEREUM_JSONRPC_TRACE_URL), when blocks are far from the head of the chain. Probably, need to create a param, which defines the number of blocks from the head of the chain, to consider them non-archival.

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

No branches or pull requests

2 participants