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

Reduce baseline RPC usage #952

Open
dancoombs opened this issue Dec 24, 2024 · 0 comments
Open

Reduce baseline RPC usage #952

dancoombs opened this issue Dec 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dancoombs
Copy link
Collaborator

Describe the feature
It currently looks like we issue the following RPC calls per block on a bedrock network with 2 builders:

  • 8x eth_feeHistory
  • 2x eth_call
  • 2x eth_getTransactionCount
  • 1x eth_getLogs

And then 2x eth_getBalance every 10s.

We can reduce this per-block baseline by:

  1. Moving eth_getTransactionCount and eth_getBalance, which are used by the builder, into the chain tracking logic. Only issue these calls when a transaction is mined.
  2. Removing the isFjord() check from the bedrock sync da logic
  3. Investigate where eth_feeHistory is being called, it should be called once per block, and the pool should serve as source of truth.

Ideally we get to:

  • 1x eth_feeHistory - determine base/priority fee
  • 1x eth_getLogs - handle entrypoint events
  • 1x eth_call - DA data updates
  • (on transaction mined for tracked address) 1x eth_getBalance,
@dancoombs dancoombs added the enhancement New feature or request label Dec 24, 2024
@dancoombs dancoombs added this to the v0.6 milestone Dec 24, 2024
@dancoombs dancoombs self-assigned this Dec 24, 2024
@dancoombs dancoombs modified the milestones: v0.6, v0.7 Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant