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

Better handling of RPC-limited batch blocks on getLogs calls #562

Open
shanefontaine opened this issue Feb 14, 2024 · 0 comments
Open

Better handling of RPC-limited batch blocks on getLogs calls #562

shanefontaine opened this issue Feb 14, 2024 · 0 comments

Comments

@shanefontaine
Copy link
Member

With the decentralized bonder role, anyone can bring their own RPC node. There is no standardization as it relates to the size of the getLogs block range or size of response.

The bonder needs to handle all of the cases in a way that isn't too inefficient.

Note

Taking a step back, is there a world where this limitation is not a concern of ours? Can we rearchitect in such a way where this does not matter?

Consideration

  • AFAICT if data is too big, most providers just truncate data and don't tell you. It is not clear how to handle this case, but might need to be handled.
  • An RPC provider may change their requirements without our notice, though this is likely a rare case.

Reference Conversation

ideally there’s a dynamic way to determine the block range to use. Maybe by doing test queries on node start, that use a large range and known short range but with large response size and store the limits of that provider in db or cache

@shanefontaine shanefontaine converted this from a draft issue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant