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

Subgraph Composition: Option to force rpc to fetch block ptrs #5876

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

Conversation

incrypto32
Copy link
Member

Composable subgraphs need to fetch block ptrs to handle reorgs, when its not in the cache graph-node uses firehose endpoint to fetch the block using a SingleBlockRequest but this is currently slower than RPC.
This PR

  • Adds an option to force using RPC to fetch block ptrs when an RPC endpoint is available
  • Parralize fetching blocks when using firehose
  • Added some refactoring in FirehoseEndpoints code

@incrypto32 incrypto32 force-pushed the krishna/firehose-parallel-get-block branch from 394c520 to fd36092 Compare March 6, 2025 13:43
…ize when using firehose with composable subgraphs
This adds GRAPH_ETHEREUM_FORCE_RPC_FOR_BLOCK_PTRS env var which when enabled forces the use of RPC instead of Firehose for loading block pointers by numbers, with Firehose fallback. Useful for composable subgraphs.
@incrypto32 incrypto32 force-pushed the krishna/firehose-parallel-get-block branch from fd36092 to 0b890a8 Compare March 6, 2025 13:54
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.

1 participant